vmiklos/plees-tracker

Calendar export creates duplicates after calendar import

vmiklos opened this issue · 2 comments

Reproducer steps

  1. Export to calendar
  2. Sync calendar to a remote storage
  3. Change phone
  4. Import from calendar
  5. Add some sleeps
  6. Export back to calendar

Actual result
Duplicated entries in the calendar

Expected behavior
No duplicated entries.

This is a follow-up for @gAQeNQ from #150

@gAQeNQ I guess the easiest would be to first fix #207 and then make sure that the import sets an export limit if there is no export limit currently.

Can you confirm that would fix your use-case?

I.e. if you import 100 sleeps, add 2 new ones, we would only export back those 2 new ones.

#224 fixed this, I believe.