Private
Public Access
1
0

adding boattype to strava

This commit is contained in:
Sander Roosendaal
2020-02-16 22:32:37 +01:00
parent 881db207db
commit a01857e6a3

View File

@@ -269,6 +269,7 @@ def create_async_workout(alldata,user,stravaid,debug=False):
starttimeunix, starttimeunix,
csvfilename, csvfilename,
workouttype = workouttype, workouttype = workouttype,
boattype = '1x'
) )
return 1 return 1
@@ -689,6 +690,7 @@ def handle_strava_import_stroke_data(title,
starttimeunix, starttimeunix,
csvfilename,debug=True, csvfilename,debug=True,
workouttype = 'rower', workouttype = 'rower',
boattype = '1x'
**kwargs): **kwargs):
# ready to fetch. Hurray # ready to fetch. Hurray
@@ -808,9 +810,11 @@ def handle_strava_import_stroke_data(title,
workoutsbox = Mailbox.objects.filter(name='workouts')[0] workoutsbox = Mailbox.objects.filter(name='workouts')[0]
body = """stravaid {stravaid} body = """stravaid {stravaid}
workouttype {workouttype}""".format( workouttype {workouttype}
boattype {boattype}""".format(
stravaid=stravaid, stravaid=stravaid,
workouttype=workouttype workouttype=workouttype
boattype=boattype
) )
msg = Message(mailbox=workoutsbox, msg = Message(mailbox=workoutsbox,