From e5401f5b8e5fc2d04e5e5bbea0cae6706d429bd6 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 8 Nov 2012 16:57:22 +0900 Subject: [PATCH] force full sync if any problems found in db check --- anki/collection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/anki/collection.py b/anki/collection.py index 82cffe668..ae46fe3dd 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -691,6 +691,9 @@ and queue = 0""", intTime(), self.usn()) txt = _("Database rebuilt and optimized.") ok = not problems problems.append(txt) + # if any problems were found, force a full sync + if problems: + self.modSchema() self.save() return ("\n".join(problems), ok)