diff --git a/templates/race.jinja b/templates/race.jinja index 7f49ff0..033b89c 100644 --- a/templates/race.jinja +++ b/templates/race.jinja @@ -25,7 +25,7 @@ {% block body %} -
Race | @@ -57,51 +57,61 @@|||
---|---|---|---|
#}
- {# {{ nextrace.id }}: {{ nextrace.grandprix }} #} - {# Guess: P{{ nextrace.pxx }}#} - {# | #}
- {##}
- {# {% for user in users %}#}
- {# #} - {# #} - {# | #} - {# {% endfor %}#} - {##} - {# Enter Race Result #} - {##} - {# | #} - {# #} - {# | #} - {#
+ {{ currentrace.id }}: {{ currentrace.grandprix }} + Guess: P{{ currentrace.pxx }} + |
- {# Race Results #}
+ {% for user in users %}
+
+ {% if (currentrace.id in guesses) and (user.name in guesses.get(currentrace.id)) %}
+ {% set pxx = guesses.get(currentrace.id).get(user.name).pxx.abbr %}
+ {% set dnf = guesses.get(currentrace.id).get(user.name).dnf.abbr %}
+
+
|
+ {% endfor %}
+
+ + | |
+ {{ currentrace.id }}: {{ currentrace.grandprix }} + Guess: P{{ currentrace.pxx }} + |
+
+ + + | + ++ | |