mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Merge pull request #394 from agentydragon/doc-for-fix-integrity
Add return value comment for fixIntegrity method of Collection
This commit is contained in:
commit
0799f50df0
1 changed files with 6 additions and 2 deletions
|
@ -856,8 +856,12 @@ select id from notes where mid = ?) limit 1"""
|
|||
return False
|
||||
return True
|
||||
|
||||
def fixIntegrity(self) -> Tuple[Any, bool]:
|
||||
"Fix possible problems and rebuild caches."
|
||||
def fixIntegrity(self) -> Tuple[str, bool]:
|
||||
"""Fix possible problems and rebuild caches.
|
||||
|
||||
Returns tuple of (error: str, ok: bool). 'ok' will be true if no
|
||||
problems were found.
|
||||
"""
|
||||
problems = []
|
||||
curs = self.db.cursor()
|
||||
self.save()
|
||||
|
|
Loading…
Reference in a new issue