I’m a very beginner to addon writing and I’ve been having a hard time figuring this out. Is there a simple way to get the number of cards in total that I have due to today?
Try len(mw.col.find_cards('is:due'))
I was also able to get it using
for tree in mw.col.sched.deckDueTree():
new += tree[4]
lrn += tree[3]
due += tree[2]
value = new + lrn + due
But your code is shorter, I’m gonna try it.