From e39c27afebfb1abdd8fb058705edcb7cf4c10d3e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 11 Feb 2019 18:12:44 +1000 Subject: [PATCH] revlog changes need to limited to (re)learning cards if you switched schedulers with the git code or the beta, please restore from a backup prior to the switch --- anki/schedv2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/schedv2.py b/anki/schedv2.py index 95194a797..b3acd8de1 100644 --- a/anki/schedv2.py +++ b/anki/schedv2.py @@ -1620,7 +1620,7 @@ where queue < 0""" % (intTime(), self.col.usn())) # adding 'hard' in v2 scheduler means old ease entries need shifting # up or down def _remapLearningAnswers(self, sql): - self.col.db.execute("update revlog set %s" % sql) + self.col.db.execute("update revlog set %s and type in (0,2)" % sql) def moveToV1(self): self._emptyAllFiltered()