From 6092e2774822d828a7a63322d516eb8a4279fff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 12 Jun 2019 15:39:43 +0200 Subject: [PATCH] client: Pass the sync token to the sync method. --- pantalaimon/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pantalaimon/client.py b/pantalaimon/client.py index 1077e53..8027607 100644 --- a/pantalaimon/client.py +++ b/pantalaimon/client.py @@ -411,7 +411,7 @@ class PanClient(AsyncClient): } } - self.next_batch = self.pan_store.load_token( + next_batch = self.pan_store.load_token( self.server_name, self.user_id ) @@ -422,7 +422,8 @@ class PanClient(AsyncClient): try: response = await self.sync( sync_filter=sync_filter, - full_state=True + full_state=True, + since=next_batch, ) if isinstance(response, SyncResponse):