cpfair / tapiriik

tapiriik keeps your fitness in sync
https://tapiriik.com
Apache License 2.0
1.72k stars 295 forks source link

Creating script to delete Endomondo duplicate sessions #495

Open boardtc opened 5 years ago

boardtc commented 5 years ago

Endommondo duplicates created

In the summer of 2018, I was using Tapiriik when all my sessions going back to 2010 in Endomondo were duplicated. There is no batch delete in Endomondo and each delete take 6 keystrokes, it's a nightmare. Endomondo does not care about their users - they are now owned my MayMyRun/Under Armour - and have refused to add the ability to batch delete or at least not to return the user to the last session after deleting an old session. Endomondo does warn on their site: "Important: In order to avoid duplicates when connecting your account with Tapiriik via Dropbox, please remember to click “reconfigure” and untick the send activities to Endomondo box (as this option is ticked by default)" I only saw this after the fact.

The duplicate sessions have not copied status and hashtag, which I only use a sometimes in my training, but in the Endonmondo list of sessions, the duplicate is shown first each time.

Endomondo.py code

Colin did tell me that the Endomondo API does provide real-time webhooks for activity creation, see https://github.com/cpfair/tapiriik/blob/master/tapiriik/services/Endomondo/endomondo.py#L207-221 in particular

Has anyone played with the endomondo code / endomondo api ?

I'm wondering about creating a delete duplicates script. The code includes a function DeleteActivity so it looks like the API allows writing as well as reading. Any thoughts on how to do this are appreciated.

clipin commented 5 years ago

From Strava today to me via email:

Hello,

The Strava<>Tapiriik connection is down while we investigate a sync issue. Will resume once cleared.

Thank you for your patience.

Best, Sean Strava Support Team