Skip to content

Instantly share code, notes, and snippets.

@fasiha
Created September 3, 2014 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fasiha/a3abbb4675dcb56c6e54 to your computer and use it in GitHub Desktop.
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
# 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