mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
force full sync if any problems found in db check
This commit is contained in:
parent
41ca2b0c1c
commit
e5401f5b8e
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue