Fix priority_only logic

This commit is contained in:
DevilXD committed 2022-04-03 14:14:20 +02:00
1 parent fd635499b6
commit 72c6e98e20
1 file changed
+3 -4
+3 -4
View File
@@ -222,10 +222,9 @@ class Twitch:
game = campaign.game
if (
game not in self.games # isn't already there
and ( # isn't excluded
priority_only and game.name in priority
and game.name not in exclude
)
and game.name not in exclude # isn't excluded
# isn't excluded by priority_only
and (not priority_only or game.name in priority)
and campaign.can_earn() # campaign can be progressed
):
self.games[game] = priorities.get(game.name, 0)