Hello,
I’m trying to do some scripting with Python. I headed a problem with unsuspend card.
I found some pieces of scripts in aqt, but I could not figure it out how to make it work.
I scripted as below:
col.sched.unsuspend_cards(ids)
Please give me a hand, thanks.
Dax
if you don’t already have the IDs of the cards you want to unsuspend, Use mw.col.find_cards() to get them and simply pass them to mw.col.sched.unsuspend_cards():
mw.col.find_cards()
mw.col.sched.unsuspend_cards()
ids = mw.col.find_cards("tag:something") mw.col.sched.unsuspend_cards(ids)
Does this help?