From 3f5c8f222e0eb3785f3c99abbf6aa05160a1d866 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 19 Apr 2020 17:26:15 +0200 Subject: [PATCH 1/4] changing shared key --- rowers/templates/plannedsessions_print.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/templates/plannedsessions_print.html b/rowers/templates/plannedsessions_print.html index 2fa37771..63fba42d 100644 --- a/rowers/templates/plannedsessions_print.html +++ b/rowers/templates/plannedsessions_print.html @@ -42,7 +42,7 @@

{% csrf_token %} - + From ab523ee4c843682dc1a86cc60d6236c89734e5ff Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 20 Apr 2020 20:04:48 +0200 Subject: [PATCH 2/4] removing OTW instructions from indoor race page --- rowers/templates/virtualevent.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rowers/templates/virtualevent.html b/rowers/templates/virtualevent.html index b67e93d0..c697c265 100644 --- a/rowers/templates/virtualevent.html +++ b/rowers/templates/virtualevent.html @@ -453,16 +453,19 @@ competitive element to training and as a quick way to set up and manage small regattas.

+ {% if race.sessiontype == 'race' %}

On the water races are rowed on the course shown. You cannot submit results rowed on other bodies of water.

+ {% else %}

Indoor races are open for all, wherever you live. However, be aware of the time zone for the race window.

+ {% endif %}

As a rowsandall.com user, you can register to take part in this event. Please note the registration @@ -473,9 +476,11 @@

After the start of the race window and before the submission deadline, you can submit results by linking the race to one of your uploaded - workouts. The workout start time must be within the race window - and your course must pass through the blue polygons on the course + workouts. The workout start time must be within the race window. + {% if race.sessiontype == 'race' %} + Your course must pass through the blue polygons on the course map (in the right order), for your result to be valid. + {% endif %}

The results table has a link to a page where details of your workout From 6e12dc32c75002115c76eb45a1e67c9b4826f368 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 21 Apr 2020 19:16:10 +0200 Subject: [PATCH 3/4] setting c2 import workout distance to data --- rowers/c2stuff.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rowers/c2stuff.py b/rowers/c2stuff.py index a90c2a2c..e5c0917a 100644 --- a/rowers/c2stuff.py +++ b/rowers/c2stuff.py @@ -1091,9 +1091,13 @@ def add_workout_from_data(user,importid,data,strokedata, workouttype=workouttype, title=title,notes=comments, workoutsource=workoutsource, - dosummary=True + dosummary=True,dosmooth=False, ) + w = Workout.objects.get(id=id) + w.duration = dataprep.totaltime_sec_to_string(totaltime) + w.distance = totaldist + w.save() return id,message From 702acca648dd9d5a35467e7cdc2177bcf089c203 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 21 Apr 2020 20:42:31 +0200 Subject: [PATCH 4/4] reqs --- requirements.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 92fe0e6d..e6eda95f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -47,6 +47,7 @@ django-leaflet==0.24.0 django-mailbox==4.8.0 django-oauth-toolkit==1.2.0 django-oauth2-provider==0.2.6.1 +django-picklefield==2.1.1 django-redis==4.10.0 django-rest-framework==0.1.0 django-rest-swagger==2.2.0 @@ -174,11 +175,11 @@ ratelim==0.1.6 redis==3.2.1 requests==2.21.0 requests-oauthlib==1.2.0 -rowingdata==2.7.8 +rowingdata==2.8.3 rowingphysics==0.5.0 rq==0.13.0 rules==2.1 -scipy==1.2.1 +scipy==1.4.1 SecretStorage==3.1.1 Send2Trash==1.5.0 shell==1.0.1