mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
leave new cards alone when exporting, so order is preserved (#447)
This commit is contained in:
parent
4aa634bc44
commit
201b54777a
1 changed files with 5 additions and 2 deletions
|
@ -1288,9 +1288,12 @@ usn=:usn, mod=:mod, factor=:fact where id=:id and odid=0""",
|
|||
|
||||
def resetCards(self, ids):
|
||||
"Completely reset cards for export."
|
||||
nonNew = self.col.db.list(
|
||||
"select id from cards where id in %s and (queue != 0 or type != 0)"
|
||||
% ids2str(ids))
|
||||
self.col.db.execute(
|
||||
"update cards set reps=0, lapses=0 where id in " + ids2str(ids))
|
||||
self.forgetCards(ids)
|
||||
"update cards set reps=0, lapses=0 where id in " + ids2str(nonNew))
|
||||
self.forgetCards(nonNew)
|
||||
|
||||
# Repositioning new cards
|
||||
##########################################################################
|
||||
|
|
Loading…
Reference in a new issue