diff --git a/anki/sync.py b/anki/sync.py
index 42e2e09b8..252a5a4cf 100644
--- a/anki/sync.py
+++ b/anki/sync.py
@@ -192,8 +192,9 @@ class SyncTools(object):
p['media'] = (
"
Media | off | off |
" % p)
return _("""\
-
-Added/Changed | Here | Server |
+
+Added/Changed |
+Here | Server |
Cards | %(lc)d | %(rc)d |
Facts | %(lf)d | %(rf)d |
Models | %(lm)d | %(rm)d |
@@ -207,6 +208,7 @@ class SyncTools(object):
"Generate a full summary of modtimes for two-way syncing."
# client may have selected an earlier sync time
self.deck.lastSync = lastSync
+ self.deck.s.commit()
# ensure we're flushed first
self.deck.s.flush()
return {