mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -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:
|
if not fact.model:
|
||||||
fact.model = self.currentModel
|
fact.model = self.currentModel
|
||||||
# clear the session and refresh the model
|
# clear the session and refresh the model
|
||||||
self.refresh()
|
|
||||||
fact.model = self.s.query(Model).get(fact.model.id)
|
fact.model = self.s.query(Model).get(fact.model.id)
|
||||||
# validate
|
# validate
|
||||||
fact.assertValid()
|
fact.assertValid()
|
||||||
|
@ -753,6 +752,7 @@ priority != 0 and due < :now and spaceUntil > :now""",
|
||||||
# proceed
|
# proceed
|
||||||
n = 0
|
n = 0
|
||||||
cards = []
|
cards = []
|
||||||
|
self.refresh()
|
||||||
self.s.save(fact)
|
self.s.save(fact)
|
||||||
self.flushMod()
|
self.flushMod()
|
||||||
for cardModel in cms:
|
for cardModel in cms:
|
||||||
|
|
Loading…
Reference in a new issue