Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Track Points duplicating for Different Sports #11

Open
ethanopp opened this issue Nov 30, 2016 · 0 comments
Open

Track Points duplicating for Different Sports #11

ethanopp opened this issue Nov 30, 2016 · 0 comments

Comments

@ethanopp
Copy link

On 11/28/2016 I recorded only a cycling workout, and on 11/29 I recorded only a weight lifting workout.

The following code gives me all the tracks points for 11/28 as expected (only Cycling).

On 11/29, I am getting the expected points for "Weight lifting", but then also getting all duplicated points of this 11/29 weight lifting workout, but with the sport showing "Cycling", which never occurred on 11/29.

workouts = endomondo.get_workouts()

for workout in workouts:
    workoutId = workout.id
    workoutDetails = endomondo.get_workout(workout)      
    sport = sports[workoutDetails.sport]
    workoutPoints=workoutDetails.points
    for point in workoutPoints:
        print point.time.date(), point.time, sport, point.hr
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant