diff --git a/pylib/anki/scheduler/base.py b/pylib/anki/scheduler/base.py index b47831272..729b9e312 100644 --- a/pylib/anki/scheduler/base.py +++ b/pylib/anki/scheduler/base.py @@ -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( diff --git a/qt/aqt/operations/scheduling.py b/qt/aqt/operations/scheduling.py index 7cfeea6f8..637ac4c92 100644 --- a/qt/aqt/operations/scheduling.py +++ b/qt/aqt/operations/scheduling.py @@ -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]: