(I made this real card days ago. today I made 26 cards from A to Z just to check it)
So I need to sort the cards from old to new bc I study and do the cards right from books and this way I preserve the following of a content and I can print instead of doing a review material
Hi, I’m getting this error message when trying to use the print.ankiaddon. I’m using Anki 23.10.1
Traceback (most recent call last):
File "C:\Users\...\print\__init__.py", line 32, in onPrint
QStandardPaths.writableLocation(QStandardPaths.DesktopLocation), "print.html"
AttributeError: type object 'QStandardPaths' has no attribute 'DesktopLocation'
Maybe you can try this, replace the code in " init.py" file:
import os
import re
from anki.cards import CardId
from anki.decks import DeckId
from anki.utils import ids2str
from aqt import mw
from aqt.qt import *
from aqt.utils import openLink
config = mw.addonManager.getConfig(name)
def sortedCids(did: DeckId) → list[CardId]:
dids = [did]
for name, id in mw.col.decks.children(did):
dids.append(id)
return mw.col.db.list(
“”"
select c.id from cards c where did in %s order by c.id"“”
% ids2str(dids)
)