Beispiel #1
0
 def suspend_selected_cards(self, checked: bool) -> None:
     cids = self.selected_cards()
     if checked:
         suspend_cards(parent=self, card_ids=cids).run_in_background()
     else:
         unsuspend_cards(parent=self.mw, card_ids=cids).run_in_background()
Beispiel #2
0
 def suspend_current_card(self) -> None:
     suspend_cards(
         parent=self.mw,
         card_ids=[self.card.id],
     ).success(lambda _: tooltip(tr.studying_card_suspended())).run_in_background()