Skip to content

Commit

Permalink
docfix, examples file
Browse files Browse the repository at this point in the history
  • Loading branch information
tobixen committed Jul 27, 2023
1 parent 6236efa commit a5c05b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/sync_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
delete_event_from_database(event)
else:
update_event_in_database(event)
save_sync_token_to_database(my_updated_events.sync_token)

## USE CASE #2, approach #2, using my_events.sync(). Ref
## https://github.com/python-caldav/caldav/issues/122 this may be
Expand All @@ -50,6 +51,7 @@
update_event_in_database(event)
for event in deleted:
delete_event_in_database(event)
save_sync_token_to_database(my_events.sync_token)

## ... but the approach above gets a bit tricky when the server is
## rebooted/restarted. It may be possible to save the etags in the
Expand Down

0 comments on commit a5c05b0

Please sign in to comment.