mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
fix cram from ids case
This commit is contained in:
parent
b03f30c279
commit
03503cd9b9
1 changed files with 2 additions and 1 deletions
|
|
@ -566,7 +566,8 @@ select count() from cards where type = 2 and combinedDue < :now
|
||||||
def _cramCardLimit(self, active, inactive, sql):
|
def _cramCardLimit(self, active, inactive, sql):
|
||||||
# inactive is (currently) ignored
|
# inactive is (currently) ignored
|
||||||
if isinstance(active, list):
|
if isinstance(active, list):
|
||||||
return sql.replace("where ", "where +c.id in " + ids2str(active))
|
return sql.replace(
|
||||||
|
"where", "where +c.id in " + ids2str(active) + " and")
|
||||||
else:
|
else:
|
||||||
yes = parseTags(active)
|
yes = parseTags(active)
|
||||||
if yes:
|
if yes:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue