From 2fef382043c174d1d816f6b01be2c21bcc3a1ee3 Mon Sep 17 00:00:00 2001 From: RohanJnr Date: Mon, 23 Sep 2019 19:17:26 +0530 Subject: fixed linting errors --- bot/seasons/evergreen/trivia_quiz.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bot/seasons/evergreen/trivia_quiz.py b/bot/seasons/evergreen/trivia_quiz.py index 84a16654..5add953f 100644 --- a/bot/seasons/evergreen/trivia_quiz.py +++ b/bot/seasons/evergreen/trivia_quiz.py @@ -91,8 +91,8 @@ class TriviaQuiz(commands.Cog): return await ctx.send("No game running, nothing to stop here.") else: if ( - ctx.author == self.game_owners[ctx.channel.id] or - Roles.moderator in [role.id for role in ctx.author.roles] + ctx.author == self.game_owners[ctx.channel.id] + or Roles.moderator in [role.id for role in ctx.author.roles] ): await self.declare_winner(ctx.channel, player_data) self.game_status[ctx.channel.id] = False @@ -101,7 +101,7 @@ class TriviaQuiz(commands.Cog): else: self.game_status[ctx.channel.id] = False return await ctx.send("start or stop only") - + unanswerd = 0 done_question = [] hint_no = 0 @@ -181,7 +181,6 @@ class TriviaQuiz(commands.Cog): @staticmethod async def declare_winner(channel, player_data): """A function declare the winner of the quiz.""" - if player_data: highest_points = max(list(player_data.values())) no_of_winners = list(player_data.values()).count(highest_points) -- cgit v1.2.3