Add back isSuspended method
This commit is contained in:
parent
6a7bfe269a
commit
30b70dca68
@ -468,15 +468,17 @@ class AnkiBridge:
|
|||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def isSuspended(self, card):
|
||||||
|
card = self.collection().getCard(card)
|
||||||
|
if card.queue == -1:
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
def areSuspended(self, cards):
|
def areSuspended(self, cards):
|
||||||
suspended = []
|
suspended = []
|
||||||
for card in cards:
|
for card in cards:
|
||||||
card = self.collection().getCard(card)
|
suspended.append(self.isSuspended(card))
|
||||||
if card.queue == -1:
|
|
||||||
suspended.append(True)
|
|
||||||
else:
|
|
||||||
suspended.append(False)
|
|
||||||
return suspended
|
return suspended
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user