Skip to content

Commit

Permalink
we must remove cards from learning queue on bury
Browse files Browse the repository at this point in the history
or they end up with an invalid status when unburied

https://anki.lighthouseapp.com/projects/100923/tickets/484-cant-sync
  • Loading branch information
dae committed Jan 14, 2013
1 parent 4ab78cf commit aefc58d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions anki/sched.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,7 @@ def buryNote(self, nid):
self.col.setDirty()
cids = self.col.db.list(
"select id from cards where nid = ? and queue >= 0", nid)
self.removeLrn(cids)
self.col.db.execute("update cards set queue = -2 where id in "+ids2str(cids))

# Resetting
Expand Down

0 comments on commit aefc58d

Please sign in to comment.