mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
refresh in different place
This commit is contained in:
parent
6a98c1bc64
commit
06799ad300
1 changed files with 1 additions and 1 deletions
|
@ -741,7 +741,6 @@ priority != 0 and due < :now and spaceUntil > :now""",
|
|||
if not fact.model:
|
||||
fact.model = self.currentModel
|
||||
# clear the session and refresh the model
|
||||
self.refresh()
|
||||
fact.model = self.s.query(Model).get(fact.model.id)
|
||||
# validate
|
||||
fact.assertValid()
|
||||
|
@ -753,6 +752,7 @@ priority != 0 and due < :now and spaceUntil > :now""",
|
|||
# proceed
|
||||
n = 0
|
||||
cards = []
|
||||
self.refresh()
|
||||
self.s.save(fact)
|
||||
self.flushMod()
|
||||
for cardModel in cms:
|
||||
|
|
Loading…
Reference in a new issue