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