Going from a list of card IDs to the review queue

I have a list of card IDs in an array and I want to overwrite the cards already in the queue. They are in a specific order and I want to overwrite any randomisation anki does while gathering them. I want to keep card insertion i.e. where a card that was rated 1 is seen again. But I don’t want to mess around with order of the array.

This is the code I’ve tried:

def card_ordering():
        for card_ in card_ids:
            yield cards_by_id[card_]
mw.reviewer.cardQueue.clear()
mw.reviewer.cardQueue.append(card_ordering())

where card_ids is an array of card IDs

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.