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,
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,