From 4b463f472ab46bd5844f0dfb0d6c82a7946c9eee Mon Sep 17 00:00:00 2001
From: Sander Roosendaal
Date: Tue, 9 Feb 2021 08:32:40 +0100
Subject: [PATCH] fix #605
---
rowers/dataprep.py | 3 +++
rowers/templates/splitworkout.html | 12 ++++++------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/rowers/dataprep.py b/rowers/dataprep.py
index 5aa8720d..8a13960f 100644
--- a/rowers/dataprep.py
+++ b/rowers/dataprep.py
@@ -2255,6 +2255,7 @@ def new_workout_from_df(r, df,
boattype = parent.boattype
notes = parent.notes
summary = parent.summary
+ rpe = parent.rpe
if parent.privacy == 'hidden':
makeprivate = True
else:
@@ -2267,6 +2268,7 @@ def new_workout_from_df(r, df,
notes = ''
summary = ''
makeprivate = False
+ rpe = 0
if startdatetime == '':
startdatetime = timezone.now()
@@ -2305,6 +2307,7 @@ def new_workout_from_df(r, df,
inboard=inboard,
makeprivate=makeprivate,
dosmooth=False,
+ rpe=rpe,
consistencychecks=False)
job = myqueue(queuehigh,handle_calctrimp,id,csvfilename,r.ftp,r.sex,r.hrftp,r.max,r.rest)
diff --git a/rowers/templates/splitworkout.html b/rowers/templates/splitworkout.html
index b07c1a54..5c93f159 100644
--- a/rowers/templates/splitworkout.html
+++ b/rowers/templates/splitworkout.html
@@ -7,7 +7,7 @@
{% block main %}
Split Workout
-
+
{% localtime on %}
-
+
-
+
{{ thescript |safe }}
-
+
{{ thediv |safe }}
@@ -67,7 +67,7 @@
-
+
{% endblock %}