From 035a4bf87fd5c05752500820d06205694c098877 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 13 Dec 2017 21:32:23 +0100 Subject: [PATCH] added table with World Records to ranking 2.0 --- rowers/templates/rankings.html | 100 +++++++++++++++++++++++++++++++++ rowers/views.py | 3 +- 2 files changed, 102 insertions(+), 1 deletion(-) diff --git a/rowers/templates/rankings.html b/rowers/templates/rankings.html index 8bbcdf26..04cd245c 100644 --- a/rowers/templates/rankings.html +++ b/rowers/templates/rankings.html @@ -275,6 +275,106 @@ {% endif %} +
+ {% if age %} +

World Records

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 100m + +
+ 500m + +
+ 1000m + +
+ 2000m + +
+ 5000m + +
+ 6000m + +
+ 10000m + +
+ Half Marathon + +
+ Full Marathon + +
+ 1 minute + +
+ 4 minutes + +
+ 30 minutes + +
+ 1 hour + +
+{% endif %} +
{% endblock %} diff --git a/rowers/views.py b/rowers/views.py index e32cc706..5f46f332 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -3709,9 +3709,10 @@ def rankings_view2(request,theuser=0, p1 = res[4] message = res[5] try: - testcalc = float(pd.Series(res[6])) + testcalc = pd.Series(res[6])*3 except TypeError: age = 0 + else: script = '' div = '

No ranking pieces found.

'