Damien Elmes 2021-12-08 09:44:47 +10:00
parent cd22485f9b
commit cad0c64105
2 changed files with 7 additions and 1 deletions

View file

@ -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(

View file

@ -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]: