From 9ea2720dc982a307efc31e7d0a87d07137162c20 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 6 Nov 2017 17:06:05 +0100 Subject: [PATCH 1/2] recognizes and refuses kml (through email) --- rowers/dataprep.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rowers/dataprep.py b/rowers/dataprep.py index 9388c84f..62ff6923 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -997,6 +997,11 @@ def new_workout_from_file(r, f2, message = "It looks like this file doesn't contain stroke data." return (0, message, f2) + if fileformat == 'kml': + os.remove(f2) + message = "KML files are not supported" + return (0, message, f2) + # Some people upload corrupted zip files if fileformat == 'notgzip': os.remove(f2) From 6e06e38cef32aed726833ebcf53de49726341a98 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 6 Nov 2017 21:44:51 +0100 Subject: [PATCH 2/2] adds two more coxswain calls --- rowers/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rowers/utils.py b/rowers/utils.py index 921c8491..0b3f2d93 100644 --- a/rowers/utils.py +++ b/rowers/utils.py @@ -62,6 +62,8 @@ coxes_calls = [ "Let's relax the shoulders, and give me a power ten to the finish!", "Almost there. Give me ten strokes on the legs!", "Let it run!", + "Don't rush the slides!", + "We're going for the line now. Power ten on the next.", ] info_calls = [