Skip to content

Commit

Permalink
Add Yoga activity type.
Browse files Browse the repository at this point in the history
Implemented for Runkeeper and Strava. Fixes cpfair#223
  • Loading branch information
jamienicol committed Feb 28, 2017
1 parent 717fa64 commit 53768f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tapiriik/services/RunKeeper/runkeeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class RunKeeperService(ServiceBase):
"Rowing": ActivityType.Rowing,
"Elliptical": ActivityType.Elliptical,
"Strength Training": ActivityType.StrengthTraining,
"Yoga": ActivityType.Yoga,
"Other": ActivityType.Other}
SupportedActivities = list(_activityMappings.values())

Expand Down
2 changes: 2 additions & 0 deletions tapiriik/services/Strava/strava.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class StravaService(ServiceBase):
ActivityType.Elliptical: "Elliptical",
ActivityType.RollerSkiing: "RollerSki",
ActivityType.StrengthTraining: "WeightTraining",
ActivityType.Yoga: "Yoga",
}

# For mapping Strava->common
Expand All @@ -78,6 +79,7 @@ class StravaService(ServiceBase):
"Elliptical": ActivityType.Elliptical,
"RollerSki": ActivityType.RollerSkiing,
"WeightTraining": ActivityType.StrengthTraining,
"Yoga": ActivityType.Yoga,
}

SupportedActivities = list(_activityTypeMappings.keys())
Expand Down
1 change: 1 addition & 0 deletions tapiriik/services/interchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class ActivityType: # taken from RK API docs. The text values have no meaning e
Climbing = "Climbing"
RollerSkiing = "RollerSkiing"
StrengthTraining = "StrengthTraining"
Yoga = "Yoga"
Other = "Other"

def List():
Expand Down

0 comments on commit 53768f9

Please sign in to comment.