adding boattype to strava
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user