we must remove cards from learning queue on bury

or they end up with an invalid status when unburied

https://anki.lighthouseapp.com/projects/100923/tickets/484-cant-sync
This commit is contained in:
Damien Elmes 2013-01-15 05:36:48 +09:00
parent 4ab78cf07c
commit aefc58d5d5

View file

@ -1254,6 +1254,7 @@ To study outside of the normal schedule, click the Custom Study button below."""
self.col.setDirty() self.col.setDirty()
cids = self.col.db.list( cids = self.col.db.list(
"select id from cards where nid = ? and queue >= 0", nid) "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)) self.col.db.execute("update cards set queue = -2 where id in "+ids2str(cids))
# Resetting # Resetting