Redo channel init

This commit is contained in:
DevilXD committed 2022-02-11 18:09:54 +01:00
1 parent 268cf439e7
commit 4d2a884fbe
2 files changed
+41 -42

No files matched your search

+1 -4
View File
@@ -194,10 +194,7 @@ class DropsCampaign:
self.ends_at: datetime = timestamp(data["endAt"])
allowed = data["allow"]
self.allowed_channels: List[Channel] = (
[
Channel(twitch, channel_data, priority=True)
for channel_data in allowed["channels"]
]
[Channel.from_acl(twitch, channel_data) for channel_data in allowed["channels"]]
if allowed["channels"] and allowed.get("isEnabled", True) else []
)
self.timed_drops: Dict[str, TimedDrop] = {