mirror of
https://github.com/ankitects/anki.git
synced 2025-11-13 16:17:13 -05:00
close other windows on reset()
This commit is contained in:
parent
8f983d5bcc
commit
6299e5f665
1 changed files with 0 additions and 3 deletions
|
|
@ -740,8 +740,6 @@ and due < :now""", now=time.time())
|
|||
"Add a fact to the deck. Return list of new cards."
|
||||
if not fact.model:
|
||||
fact.model = self.currentModel
|
||||
# clear the session and refresh the model
|
||||
fact.model = self.s.query(Model).get(fact.model.id)
|
||||
# validate
|
||||
fact.assertValid()
|
||||
fact.assertUnique(self.s)
|
||||
|
|
@ -752,7 +750,6 @@ and due < :now""", now=time.time())
|
|||
# proceed
|
||||
n = 0
|
||||
cards = []
|
||||
self.refresh()
|
||||
self.s.save(fact)
|
||||
self.factCount += 1
|
||||
self.flushMod()
|
||||
|
|
|
|||
Loading…
Reference in a new issue