Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeydergunov committed Jan 4, 2025
1 parent 10b226e commit ae75187
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/rating/management/commands/update_trueskill.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ def get_rating_by_type(type):

def find_one_player(first_name: str, last_name: str) -> Optional[Player]:
try:
player = Player.objects.get(
first_name_ru=first_name, last_name_ru=last_name, is_exclude_from_rating=False
)
player = Player.objects.get(first_name_ru=first_name, last_name_ru=last_name, is_exclude_from_rating=False)
return player
except (Player.DoesNotExist, Player.MultipleObjectsReturned):
return None
Expand Down

0 comments on commit ae75187

Please sign in to comment.