diff --git a/rowers/integrations/intervals.py b/rowers/integrations/intervals.py index 8d65d39c..e689bdbc 100644 --- a/rowers/integrations/intervals.py +++ b/rowers/integrations/intervals.py @@ -219,7 +219,7 @@ class IntervalsIntegration(SyncIntegration): thetype = mytypes.intervalsmapping[workout.workouttype] jsondict = {'type': thetype} - subtype = w.sub_type + subtype = workout.sub_type if subtype: jsondict['sub_type'] = subtype