Fix user name check for MGA in frontend

Use "for key, value in" when reading usaneko phases
Lint fixes
This commit is contained in:
cracrayol
2021-09-06 02:16:06 +02:00
parent f541acb206
commit d3d1fe6ca0
10 changed files with 25 additions and 126 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class Triggers:
self.broadcast_score_discord(data, game, song)
def broadcast_score_discord(self, data: Dict[BroadcastConstants, str], game: GameConstants, song: Song) -> None:
if game in [GameConstants.IIDX, GameConstants.POPN_MUSIC] :
if game in {GameConstants.IIDX, GameConstants.POPN_MUSIC}:
now = datetime.now()
webhook = DiscordWebhook(url=self.config.webhooks.discord[game])