From f7a5a41b7c5cb5cef784ce32da6d0f125db6a997 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 21 Jul 2022 14:12:32 +0200 Subject: [PATCH] polishing --- rowers/dataprep.py | 5 +++++ rowers/templates/instroke_interactive.html | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/rowers/dataprep.py b/rowers/dataprep.py index 471b3e97..86f13ab6 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -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) diff --git a/rowers/templates/instroke_interactive.html b/rowers/templates/instroke_interactive.html index 7fd5972e..d22d2f4e 100644 --- a/rowers/templates/instroke_interactive.html +++ b/rowers/templates/instroke_interactive.html @@ -119,6 +119,9 @@ $( function() {

In Stroke Metrics

    +
  • +

    This is an experimental prototype. It's behavior is not guaranteed. Response may be slow. +

  • {% csrf_token %} @@ -139,13 +142,13 @@ $( function() {
  • -
    - {{ dd|safe }} +
    + {{ the_div|safe }}
  • -
    - {{ the_div|safe }} +
    + {{ dd|safe }}