Skip to content

Commit

Permalink
attempt to fix game /leader type
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoc committed Oct 15, 2024
1 parent 44913ef commit 8ce270d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/discord/interactions/handlers/commands/leader.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def leader(request, interaction=None):
game_type = GameType._value2member_map_[int(find_game_type)]
qs = qs.filter(game_type__exact=game_type.value)
lead_label = game_type.label
lead_url = f'{reverse(lead_label.lower())}#{lead_label.lower()}'
lead_url_path = f'{lead_label.lower()}_leaders'
lead_url = f'{reverse(lead_url_path)}#{lead_label.lower()}'

lead_player = qs.first()
return (
Expand Down

0 comments on commit 8ce270d

Please sign in to comment.