From 5131c4a3c1fd85e2bff278f741d8d68abecd6a1a Mon Sep 17 00:00:00 2001 From: c0de Date: Thu, 10 Nov 2022 21:46:42 -0600 Subject: [PATCH] linting --- GhostBallBot/game/game.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/GhostBallBot/game/game.py b/GhostBallBot/game/game.py index caef9c5..80e3cb7 100644 --- a/GhostBallBot/game/game.py +++ b/GhostBallBot/game/game.py @@ -2,7 +2,7 @@ # Copyright 2022 - c0de # Licensed under the MIT License (https://opensource.org/licenses/MIT) -# pylint: disable=no-member +# pylint: disable=no-member,not-an-iterable """ A Context Manager / State Machine that keeps track of @@ -10,8 +10,6 @@ Discord channel """ -import pdb -import math import uuid import datetime @@ -162,7 +160,7 @@ class GameManager: if guess_count < 3: self.game = None self.is_running = False - await self.message.channel.send( + return await self.message.channel.send( ("Play closed!\n" + "However, there were not enough participants.") ) @@ -217,9 +215,8 @@ class GameManager: ) Guess.update({"guess": value}).where( - (Guess.game.game_id == self.game.game_id) - & - (Guess.player_id == self.message.author.id) + (Guess.game == self.game.game_id) + & (Guess.player_id == self.message.author.id) ).execute() if created: