Fix an issue with the drops_enabled flag reporting true for sub-only drops
This commit is contained in:
1 parent
2737936739
commit
f3c189e86d
2 files changed
+14
-8
No files matched your search
@@ -429,6 +429,7 @@ class Twitch:
|
||||
self.wanted_games: list[Game] = []
|
||||
self.inventory: list[DropsCampaign] = []
|
||||
self._drops: dict[str, TimedDrop] = {}
|
||||
self._campaigns: dict[str, DropsCampaign] = {}
|
||||
self._mnt_triggers: deque[datetime] = deque()
|
||||
# NOTE: GQL is pretty volatile and breaks everything if one runs into their rate limit.
|
||||
# Do not modify the default, safe values.
|
||||
@@ -1464,6 +1465,7 @@ class Twitch:
|
||||
if campaign.can_earn_within(next_hour):
|
||||
switch_triggers.update(campaign.time_triggers)
|
||||
self.inventory.append(campaign)
|
||||
self._campaigns[campaign.id] = campaign
|
||||
# concurrently add the campaigns into the GUI
|
||||
# NOTE: this fetches pictures from the CDN, so might be slow without a cache
|
||||
status_update(
|
||||
|
||||
Reference in new issue
Block a user