From 4669187b7ad04cf750e3b1a6e8c9bb33617046ec Mon Sep 17 00:00:00 2001 From: Brennan Bibic Date: Thu, 24 Oct 2024 16:16:04 -0400 Subject: [PATCH] fix: try to fix 500ing --- home/templates/home/user_profile.html | 56 +++++++++++++-------------- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/home/templates/home/user_profile.html b/home/templates/home/user_profile.html index 0db1da6..afa810c 100644 --- a/home/templates/home/user_profile.html +++ b/home/templates/home/user_profile.html @@ -19,35 +19,33 @@
{{user.username}}#{{user.discriminator}}
{% if elos_by_game %} - {% for game_type, game_modes in elos_by_game.items|groupby:"game_mode.game" %} -
-
-

{{ game_type }}

- - - - - - - - - - {% for game_mode, elo in game_modes %} - - - {% if elo %} - - - {% else %} - - {% endif %} - - {% endfor %} - -
ModeELOW-L-T
{{ game_mode.name }}{{ elo.elo|floatformat:1 }}{{ elo.matches_won }}-{{ elo.matches_lost }}-{{ elo.matches_drawn }}Not Played
-
-
- {% endfor %} + + {% for game_type, modes in elos_by_game.items %} + + + + + + + + + + + + {% for item in modes %} + + + {% if item.elo %} + + + {% else %} + + {% endif %} + + {% endfor %} + + {% endfor %} +
{{ game_type }}
ModeELOW-L-T
{{ item.mode.name }}{{ item.elo.elo|floatformat:1 }}{{ item.elo.matches_won }}-{{ item.elo.matches_lost }}-{{ item.elo.matches_drawn }}Not Played
{% endif %}