Created
September 3, 2014 14:06
-
-
Save fasiha/a3abbb4675dcb56c6e54 to your computer and use it in GitHub Desktop.
Snippet for running in the Anki Debug Window (Control+:, i.e., Control colon): print out all due cards' questions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How many cards to print? | |
cardsToPrint = 250 | |
# By default, the Anki scheduler will just show you 50 cards due. Where does it get off??? | |
mw.col.sched.queueLimit = cardsToPrint + 1 | |
# Don't print cards that have already been printed: this will store card IDs as we print them | |
seen = {} | |
# Let's do this!!! | |
for i in range(cardsToPrint): | |
card = mw.col.sched.getCard() | |
if not card: break | |
if card.id in seen: continue | |
print card.q() | |
print "<hr>" | |
seen[card.id] = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment