Skip to content

Commit

Permalink
Bump ruff to 0.0.281
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Aug 1, 2023
1 parent 949a042 commit 61aa7b8
Show file tree
Hide file tree
Showing 3 changed files with 307 additions and 330 deletions.
4 changes: 2 additions & 2 deletions bot/exts/events/trivianight/_scoreboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ def assign_points(self, user_id: int, *, points: int | None = None, speed: float
This method should be called once the question has finished and all answers have been registered.
"""
if points is not None and user_id not in self._points.keys():
if points is not None and user_id not in self._points:
self._points[user_id] = points
elif points is not None:
self._points[user_id] += points

if speed is not None and user_id not in self._speed.keys():
if speed is not None and user_id not in self._speed:
self._speed[user_id] = [1, speed]
elif speed is not None:
self._speed[user_id] = [
Expand Down
Loading

0 comments on commit 61aa7b8

Please sign in to comment.