From a5c05b08da13b6a60e87e503c919351af8c6b9d8 Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Thu, 27 Jul 2023 14:54:22 +0200 Subject: [PATCH] docfix, examples file --- examples/sync_examples.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/sync_examples.py b/examples/sync_examples.py index 2bd779fb..58c6274f 100644 --- a/examples/sync_examples.py +++ b/examples/sync_examples.py @@ -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 @@ -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