Display race time
All checks were successful
Build Formula10 Docker Image / build-docker (push) Successful in 14s
All checks were successful
Build Formula10 Docker Image / build-docker (push) Successful in 14s
This commit is contained in:
@ -18,7 +18,8 @@ import formula10.controller.admin_controller # type: ignore
|
||||
# TODO
|
||||
# General
|
||||
|
||||
# - Choose "place to guess" late before the race? Make a page for this
|
||||
# - Show date for race name, also store time in database
|
||||
# - Choose "place to guess" late before the race? Make a page for this?
|
||||
# - Rules page
|
||||
|
||||
# - Make user order changeable using drag'n'drop?
|
||||
@ -26,7 +27,8 @@ import formula10.controller.admin_controller # type: ignore
|
||||
# - Show cards of previous race results, like with season guesses?
|
||||
|
||||
# Statistics
|
||||
# - Rename "Statistics" to "Leaderboard"
|
||||
# - Auto calculate points
|
||||
# - Order user table by points + display points somewhere
|
||||
# - Show current values for some season guesses (e.g. current most dnfs)
|
||||
# - Highlight currently correct values for some season guesses (e.g. current most dnfs)
|
||||
# - Generate static diagram using chart.js + templating the js (funny yikes)
|
@ -24,7 +24,7 @@ class DbRace(db.Model):
|
||||
def from_csv(cls, row: List[str]):
|
||||
db_race: DbRace = cls(name=str(row[0]),
|
||||
number=int(row[1]),
|
||||
date=datetime.strptime(row[2], "%Y-%m-%d"),
|
||||
date=datetime.strptime(str(row[2]), "%Y-%m-%d-%H-%M"),
|
||||
pxx=int(row[3]))
|
||||
return db_race
|
||||
|
||||
|
@ -49,7 +49,8 @@
|
||||
<tr class="table-danger">
|
||||
<td class="text-nowrap">
|
||||
<span class="fw-bold">{{ model.current_race.number }}:</span> {{ model.current_race.name }}<br>
|
||||
<small><span class="fw-bold">Guess:</span> P{{ model.current_race.place_to_guess }}</small>
|
||||
<small><span class="fw-bold">Guess:</span> P{{ model.current_race.place_to_guess }}</small><br>
|
||||
<small><span class="fw-bold">Date:</span> {{ model.current_race.date.strftime("%d.%m.%Y %H:%M") }}</small>
|
||||
</td>
|
||||
|
||||
{% if model.all_users() | length > 0 %}
|
||||
@ -117,7 +118,8 @@
|
||||
<tr>
|
||||
<td class="text-nowrap">
|
||||
<span class="fw-bold">{{ past_result.race.number }}:</span> {{ past_result.race.name }}<br>
|
||||
<small><span class="fw-bold">Guessed:</span> P{{ past_result.race.place_to_guess }}</small>
|
||||
<small><span class="fw-bold">Guessed:</span> P{{ past_result.race.place_to_guess }}</small><br>
|
||||
<small><span class="fw-bold">Date:</span> {{ past_result.race.date.strftime("%d.%m.%Y %H:%M") }}</small>
|
||||
</td>
|
||||
|
||||
{% if model.all_users_or_active_user() | length > 0 %}
|
||||
|
Reference in New Issue
Block a user