mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
removed size report in check db
This commit is contained in:
parent
229b7d1b22
commit
7458fca33c
1 changed files with 0 additions and 3 deletions
|
|
@ -648,10 +648,7 @@ select id from notes where id not in (select distinct nid from cards)""")
|
||||||
# and finally, optimize
|
# and finally, optimize
|
||||||
self.optimize()
|
self.optimize()
|
||||||
newSize = os.stat(self.path)[stat.ST_SIZE]
|
newSize = os.stat(self.path)[stat.ST_SIZE]
|
||||||
save = (oldSize - newSize)/1024
|
|
||||||
txt = _("Database rebuilt and optimized.")
|
txt = _("Database rebuilt and optimized.")
|
||||||
if save > 0:
|
|
||||||
txt += "\n" + _("Saved %dKB.") % save
|
|
||||||
ok = not problems
|
ok = not problems
|
||||||
problems.append(txt)
|
problems.append(txt)
|
||||||
self.save()
|
self.save()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue