Skip to content

Commit 8ce270d

Browse files
committed
attempt to fix game /leader type
1 parent 44913ef commit 8ce270d

File tree

1 file changed

+2
-1
lines changed
  • apps/discord/interactions/handlers/commands

1 file changed

+2
-1
lines changed

apps/discord/interactions/handlers/commands/leader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def leader(request, interaction=None):
1818
game_type = GameType._value2member_map_[int(find_game_type)]
1919
qs = qs.filter(game_type__exact=game_type.value)
2020
lead_label = game_type.label
21-
lead_url = f'{reverse(lead_label.lower())}#{lead_label.lower()}'
21+
lead_url_path = f'{lead_label.lower()}_leaders'
22+
lead_url = f'{reverse(lead_url_path)}#{lead_label.lower()}'
2223

2324
lead_player = qs.first()
2425
return (

0 commit comments

Comments
 (0)