mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
check for null sources
This commit is contained in:
parent
0f8762c3fe
commit
ada1cd04b7
1 changed files with 2 additions and 0 deletions
|
@ -1516,6 +1516,8 @@ select id from fields where factId not in (select id from facts)""")
|
|||
self.s.statement("update cards set isDue = 0")
|
||||
# fix problems with conflicts on merge
|
||||
self.s.statement("update fields set id = random()")
|
||||
# model sources null?
|
||||
self.s.statement("update models set source = 0 where source is null")
|
||||
# fix any priorities
|
||||
self.updateAllPriorities()
|
||||
# fix problems with stripping html
|
||||
|
|
Loading…
Reference in a new issue