From e010ef8062b64c3ed34c67c6851b020082d5870f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 2 Oct 2010 14:47:33 +0900 Subject: [PATCH] add clock skew compensation again this has the negative effect of causing multiple full syncs if syncing multiple times within a 5 minute period of the previous full sync, but it makes it much less likely that people's due counts will fall out of sync --- anki/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sync.py b/anki/sync.py index 4bc60e768..76260d59d 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -122,7 +122,7 @@ class SyncTools(object): l = self._lastSync(); r = self.server._lastSync() # set lastSync to the lower of the two sides if l != r: - self.deck.lastSync = min(l, r) + self.deck.lastSync = min(l, r) - 350 else: self.deck.lastSync = l return True