From 72c6e98e20c39f8d19d9c16d4ffb62b44e1c16f3 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Sun, 3 Apr 2022 14:14:20 +0200 Subject: [PATCH] Fix priority_only logic --- twitch.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/twitch.py b/twitch.py index 5589e3c..3e6fd40 100644 --- a/twitch.py +++ b/twitch.py @@ -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)