mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
fix return when collection corrupt
This commit is contained in:
parent
73bfbb7f24
commit
a742784873
1 changed files with 1 additions and 1 deletions
|
|
@ -625,7 +625,7 @@ where c.nid == f.id
|
|||
self.save()
|
||||
oldSize = os.stat(self.path)[stat.ST_SIZE]
|
||||
if self.db.scalar("pragma integrity_check") != "ok":
|
||||
return _("Collection is corrupt. Please see the manual.")
|
||||
return (_("Collection is corrupt. Please see the manual."), False)
|
||||
# delete any notes with missing cards
|
||||
ids = self.db.list("""
|
||||
select id from notes where id not in (select distinct nid from cards)""")
|
||||
|
|
|
|||
Loading…
Reference in a new issue