polishing
This commit is contained in:
@@ -1363,8 +1363,13 @@ def new_workout_from_file(r, f2,
|
|||||||
|
|
||||||
if fileformat == 'att': # pragma: no cover
|
if fileformat == 'att': # pragma: no cover
|
||||||
# email attachment which can safely be ignored
|
# email attachment which can safely be ignored
|
||||||
|
os.remove(f2)
|
||||||
return (0, '', f2)
|
return (0, '', f2)
|
||||||
|
|
||||||
|
if fileformat == 'quiskesummary':
|
||||||
|
os.remove(f2)
|
||||||
|
return (0,'',f2)
|
||||||
|
|
||||||
# Get workout type from fit & tcx
|
# Get workout type from fit & tcx
|
||||||
if (fileformat == 'fit'): # pragma: no cover
|
if (fileformat == 'fit'): # pragma: no cover
|
||||||
workouttype = get_workouttype_from_fit(f2, workouttype=workouttype)
|
workouttype = get_workouttype_from_fit(f2, workouttype=workouttype)
|
||||||
|
|||||||
@@ -119,6 +119,9 @@ $( function() {
|
|||||||
|
|
||||||
<h1>In Stroke Metrics</h1>
|
<h1>In Stroke Metrics</h1>
|
||||||
<ul class="main-content">
|
<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" >
|
<li class="grid_4" >
|
||||||
<form id="instrokeform" enctype="multipart/form-data" action="" method="post">
|
<form id="instrokeform" enctype="multipart/form-data" action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
@@ -139,13 +142,13 @@ $( function() {
|
|||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
<li class="grid_4">
|
<li class="grid_4">
|
||||||
<div id="dd" class="flexplot">
|
<div id="id_chart" class="flexplot">
|
||||||
{{ dd|safe }}
|
{{ the_div|safe }}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="grid_4">
|
<li class="grid_4">
|
||||||
<div id="id_chart" class="flexplot">
|
<div id="dd" class="flexplot">
|
||||||
{{ the_div|safe }}
|
{{ dd|safe }}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user