Skip to content

Commit 50cd262

Browse files
authored
don't reschedule suspended cards
Every time reposition runs, it lists all IR cards and sorts them, but this includes suspended cards which interrupts what I think is a good workflow #96 My ideal work flow would be - add new document - break out sections - create cards from sections - suspend the remaining IR cards This allows the suspending part of the workflow to continue working.
1 parent 538e375 commit 50cd262

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ir/schedule.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
)
3434

3535
from anki.utils import stripHTML
36+
from anki.consts import QUEUE_TYPE_SUSPENDED
3637
from aqt import mw
3738
from aqt.utils import showInfo, tooltip
3839

@@ -284,7 +285,7 @@ def _getCardInfo(self, did):
284285
cardInfo = []
285286

286287
for cid, nid in mw.col.db.execute(
287-
'select id, nid from cards where did = ?', did
288+
f'select id, nid from cards where did = ? and queue <> {QUEUE_TYPE_SUSPENDED}', did
288289
):
289290
note = mw.col.getNote(nid)
290291
if note.model()['name'] == self.settings['modelName']:

0 commit comments

Comments
 (0)