mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
fix local syncing
This commit is contained in:
parent
2e2d93649e
commit
2ca27d389f
1 changed files with 2 additions and 1 deletions
|
|
@ -614,7 +614,8 @@ values
|
|||
|
||||
def bundleDeck(self):
|
||||
# ensure modified is not greater than server time
|
||||
if getattr(self, "server", None):
|
||||
if getattr(self, "server", None) and getattr(
|
||||
self.server, "timestamp", None):
|
||||
self.deck.modified = min(self.deck.modified,self.server.timestamp)
|
||||
# and ensure lastSync is greater than modified
|
||||
self.deck.lastSync = max(time.time(), self.deck.modified+1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue