Skip to content

Commit

Permalink
Update game.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DoroWolf authored May 1, 2024
1 parent 8c3bd3e commit af87e5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/utils/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def update(self, **kwargs):

def check(self, key: str = 'status'):
if self.target_id not in playstate_lst:
return False
return None
if self.all:
return playstate_lst[self.target_id].get(self.game, {}).get(key, False)
return playstate_lst[self.target_id].get(self.game, {}).get(key, None)
else:
return playstate_lst[self.target_id].get(self.sender_id, {}).get(self.game, {}).get(key, False)
return playstate_lst[self.target_id].get(self.sender_id, {}).get(self.game, {}).get(key, None)

0 comments on commit af87e5c

Please sign in to comment.