Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-05-28 07:53:32 +02:00
parent 6914993516
commit 1c9d45a026
2 changed files with 7 additions and 4 deletions

View File

@@ -279,10 +279,10 @@
<th>Boat</th>
{% endif %}
{% endif %}
<th>Time</th>
<th>Distance</th>
<th>Time<a href="?order_by=duration">&#9660;</th>
<th>Distance<a href="?order_by=-distance">&#9660;</th>
{% if race.coursestandards %}
<th>Points</th>
<th>Points<a href="?order_by=-points">&#9660;</a></th>
{% endif %}
<th>Details</th>
<th>&nbsp;</th>

View File

@@ -1159,7 +1159,6 @@ def virtualevent_view(request,id=0):
if entrycategory is not None:
results = results.filter(entrycategory__in=entrycategory)
# to-do - add DNS
dns = []
if timezone.now() > race.evaluation_closure:
@@ -1198,6 +1197,10 @@ def virtualevent_view(request,id=0):
}
]
orderby = request.GET.get('order_by')
if orderby is not None:
results = results.order_by(orderby)
racelogos = race.logos.all()
if racelogos: