mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04: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):
|
||||
# inactive is (currently) ignored
|
||||
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:
|
||||
yes = parseTags(active)
|
||||
if yes:
|
||||
|
|
Loading…
Reference in a new issue