mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
add unbury_cards() op
https://forums.ankiweb.net/t/add-a-collection-operation-to-unbury-cards/15720
This commit is contained in:
parent
cd22485f9b
commit
cad0c64105
2 changed files with 7 additions and 1 deletions
|
@ -116,7 +116,7 @@ select id from cards where did in %s and queue = {QUEUE_TYPE_REV} and due <= ? l
|
|||
def unsuspend_cards(self, ids: Sequence[CardId]) -> OpChanges:
|
||||
return self.col._backend.restore_buried_and_suspended_cards(ids)
|
||||
|
||||
def unbury_cards(self, ids: list[CardId]) -> OpChanges:
|
||||
def unbury_cards(self, ids: Sequence[CardId]) -> OpChanges:
|
||||
return self.col._backend.restore_buried_and_suspended_cards(ids)
|
||||
|
||||
def unbury_deck(
|
||||
|
|
|
@ -183,6 +183,12 @@ def bury_notes(
|
|||
return CollectionOp(parent, lambda col: col.sched.bury_notes(note_ids))
|
||||
|
||||
|
||||
def unbury_cards(
|
||||
*, parent: QWidget, card_ids: Sequence[CardId]
|
||||
) -> CollectionOp[OpChanges]:
|
||||
return CollectionOp(parent, lambda col: col.sched.unbury_cards(card_ids))
|
||||
|
||||
|
||||
def rebuild_filtered_deck(
|
||||
*, parent: QWidget, deck_id: DeckId
|
||||
) -> CollectionOp[OpChangesWithCount]:
|
||||
|
|
Loading…
Reference in a new issue