From a01857e6a3e9928df84044124e34c39eeb4ac64e Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 16 Feb 2020 22:32:37 +0100 Subject: [PATCH] adding boattype to strava --- rowers/stravastuff.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rowers/stravastuff.py b/rowers/stravastuff.py index 30e8ab61..1aee7605 100644 --- a/rowers/stravastuff.py +++ b/rowers/stravastuff.py @@ -269,6 +269,7 @@ def create_async_workout(alldata,user,stravaid,debug=False): starttimeunix, csvfilename, workouttype = workouttype, + boattype = '1x' ) return 1 @@ -689,6 +690,7 @@ def handle_strava_import_stroke_data(title, starttimeunix, csvfilename,debug=True, workouttype = 'rower', + boattype = '1x' **kwargs): # ready to fetch. Hurray @@ -808,9 +810,11 @@ def handle_strava_import_stroke_data(title, workoutsbox = Mailbox.objects.filter(name='workouts')[0] body = """stravaid {stravaid} -workouttype {workouttype}""".format( +workouttype {workouttype} +boattype {boattype}""".format( stravaid=stravaid, workouttype=workouttype + boattype=boattype ) msg = Message(mailbox=workoutsbox,