Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-02-09 08:32:40 +01:00
parent 0b0aa5549e
commit 4b463f472a
2 changed files with 9 additions and 6 deletions

View File

@@ -2255,6 +2255,7 @@ def new_workout_from_df(r, df,
boattype = parent.boattype boattype = parent.boattype
notes = parent.notes notes = parent.notes
summary = parent.summary summary = parent.summary
rpe = parent.rpe
if parent.privacy == 'hidden': if parent.privacy == 'hidden':
makeprivate = True makeprivate = True
else: else:
@@ -2267,6 +2268,7 @@ def new_workout_from_df(r, df,
notes = '' notes = ''
summary = '' summary = ''
makeprivate = False makeprivate = False
rpe = 0
if startdatetime == '': if startdatetime == '':
startdatetime = timezone.now() startdatetime = timezone.now()
@@ -2305,6 +2307,7 @@ def new_workout_from_df(r, df,
inboard=inboard, inboard=inboard,
makeprivate=makeprivate, makeprivate=makeprivate,
dosmooth=False, dosmooth=False,
rpe=rpe,
consistencychecks=False) consistencychecks=False)
job = myqueue(queuehigh,handle_calctrimp,id,csvfilename,r.ftp,r.sex,r.hrftp,r.max,r.rest) job = myqueue(queuehigh,handle_calctrimp,id,csvfilename,r.ftp,r.sex,r.hrftp,r.max,r.rest)

View File

@@ -7,7 +7,7 @@
{% block main %} {% block main %}
<h1>Split Workout</h1> <h1>Split Workout</h1>
{% localtime on %} {% localtime on %}
<ul class="main-content"> <ul class="main-content">
<li class="grid_2"> <li class="grid_2">
@@ -17,19 +17,19 @@
{{ form.as_table }} {{ form.as_table }}
</table> </table>
{% csrf_token %} {% csrf_token %}
<input class="button green" type="submit" value="Split"> <input class="button" type="submit" value="Split">
</form> </form>
</p> </p>
</li> </li>
<li class="grid_2"> <li class="grid_2">
<script src="https://cdn.pydata.org/bokeh/release/bokeh-2.2.3.min.js"></script> <script src="https://cdn.pydata.org/bokeh/release/bokeh-2.2.3.min.js"></script>
<script async="true" type="text/javascript"> <script async="true" type="text/javascript">
Bokeh.set_log_level("info"); Bokeh.set_log_level("info");
</script> </script>
{{ thescript |safe }} {{ thescript |safe }}
{{ thediv |safe }} {{ thediv |safe }}
<table width=100%> <table width=100%>
@@ -67,7 +67,7 @@
</p> </p>
</li> </li>
</ul> </ul>
{% endblock %} {% endblock %}