jaroslawhartman / withings-sync

Synchronisation of Withings weight
MIT License
457 stars 89 forks source link

sync.py: update last_sync value after successful sync #137

Closed stynoo closed 1 year ago

stynoo commented 1 year ago

Last sync value was always updated, even after an unsuccessful sync. This should prevent this.

longstone commented 1 year ago

lgmt! Not part of this PR: do we need to split last sync for garmin and trainerroad?

stynoo commented 1 year ago

Ah, I guess that makes sense...
Otoh, it may be possible with Garth to check if the value exists before we try to write it. In that case the last sync values are no longer needed and we can just sync everything from say last two days.