Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
mmr distance is meters
Browse files Browse the repository at this point in the history
  • Loading branch information
neilboyd committed Feb 2, 2021
1 parent acff505 commit 6b8ee63
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion tapiriik/auth/credential_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#### note about tapiriik and credential storage ####
# Some services require a username and password for every action - so they need to be stored in recoverable form
# (namely: Garmin Connect's current "API")
# I've done my best to mitigate the risk that these credentials ever be compromised, but the risk can never be eliminated
# If you're not comfortable with it, you can opt to not have your credentials stored, instead entering them on every sync

Expand Down
3 changes: 1 addition & 2 deletions tapiriik/services/MapMyFitness/mapmyfitness.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ def DownloadActivityList(self, serviceRecord, exhaustive=False):
activity.Stats.MovingTime = ActivityStatistic(ActivityStatisticUnit.Seconds, value=float(aggregates["active_time_total"]))

if "distance_total" in aggregates:
activity.Distance = aggregates["distance_total"]
activity.Stats.Distance = ActivityStatistic(ActivityStatisticUnit.Kilometers, value=float(aggregates["distance_total"]))
activity.Stats.Distance = ActivityStatistic(ActivityStatisticUnit.Meters, value=float(aggregates["distance_total"]))

if "speed_min" in aggregates:
activity.Stats.Speed.Min = float(aggregates["speed_min"])
Expand Down

0 comments on commit 6b8ee63

Please sign in to comment.