mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
return check db status
This commit is contained in:
parent
fbefb8a906
commit
d429519929
1 changed files with 2 additions and 1 deletions
|
@ -592,9 +592,10 @@ select id from notes where id not in (select distinct nid from cards)""")
|
|||
txt = _("Database rebuilt and optimized.")
|
||||
if save > 0:
|
||||
txt += "\n" + _("Saved %dKB.") % save
|
||||
ok = not problems
|
||||
problems.append(txt)
|
||||
self.save()
|
||||
return "\n".join(problems)
|
||||
return ("\n".join(problems), ok)
|
||||
|
||||
def optimize(self):
|
||||
self.db.execute("vacuum")
|
||||
|
|
Loading…
Reference in a new issue