Private
Public Access
1
0

polishing

This commit is contained in:
Sander Roosendaal
2022-07-21 14:12:32 +02:00
parent 5504d663c2
commit f7a5a41b7c
2 changed files with 12 additions and 4 deletions

View File

@@ -1363,8 +1363,13 @@ def new_workout_from_file(r, f2,
if fileformat == 'att': # pragma: no cover
# email attachment which can safely be ignored
os.remove(f2)
return (0, '', f2)
if fileformat == 'quiskesummary':
os.remove(f2)
return (0,'',f2)
# Get workout type from fit & tcx
if (fileformat == 'fit'): # pragma: no cover
workouttype = get_workouttype_from_fit(f2, workouttype=workouttype)

View File

@@ -119,6 +119,9 @@ $( function() {
<h1>In Stroke Metrics</h1>
<ul class="main-content">
<li class="grid_4">
<p>This is an experimental prototype. It's behavior is not guaranteed. Response may be slow.
</li>
<li class="grid_4" >
<form id="instrokeform" enctype="multipart/form-data" action="" method="post">
{% csrf_token %}
@@ -139,13 +142,13 @@ $( function() {
</form>
</li>
<li class="grid_4">
<div id="dd" class="flexplot">
{{ dd|safe }}
<div id="id_chart" class="flexplot">
{{ the_div|safe }}
</div>
</li>
<li class="grid_4">
<div id="id_chart" class="flexplot">
{{ the_div|safe }}
<div id="dd" class="flexplot">
{{ dd|safe }}
</div>
</li>
</ul>