diff options
| author | 2019-09-23 19:17:26 +0530 | |
|---|---|---|
| committer | 2019-09-23 19:17:26 +0530 | |
| commit | 2fef382043c174d1d816f6b01be2c21bcc3a1ee3 (patch) | |
| tree | d3959ca227badf72429951ed217c5b9d3aeb644b | |
| parent | corrected my spelling mistake on the file name (diff) | |
fixed linting errors
| -rw-r--r-- | bot/seasons/evergreen/trivia_quiz.py | 7 |
1 files 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) |