Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
sort cids
Browse files Browse the repository at this point in the history
  • Loading branch information
fonol committed Dec 26, 2020
1 parent 0bf8b01 commit a11bafc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/command_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2018,6 +2018,7 @@ def create_filtered_deck(cids: List[int]) -> bool:
did = mw.col.decks.new_filtered(REV_FILTERED_DECK_NAME)
else:
did = mw.col.decks.newDyn(REV_FILTERED_DECK_NAME)
cids.sort()
dyn = mw.col.decks.get(did)
dyn["terms"][0] = [" or ".join([f"cid:{cid}" for cid in cids]), 9999, 0]
dyn["resched"] = True
Expand Down

0 comments on commit a11bafc

Please sign in to comment.