Fix detection of whether or not a drop can be progressed

This commit is contained in:
DevilXD committed 2022-01-09 14:13:08 +01:00
1 parent 1af56199fc
commit 8d77a362b5
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -300,7 +300,7 @@ class Twitch:
if drop is None:
use_active = True
logger.error(f"Missing drop: {drop_id}")
elif not drop.campaign.active:
elif not drop.can_earn:
use_active = True
else:
drop.update_minutes(drop_data["currentMinutesWatched"])
@@ -421,7 +421,7 @@ class Twitch:
# we aren't actually waiting for a progress update right now, so we can just
# ignore the event this time
return
elif drop is not None and drop.campaign.active:
elif drop is not None and drop.can_earn:
drop.update_minutes(message["data"]["current_progress_min"])
drop.display()
# Let the watch loop know we've handled it here