Add back isSuspended method

This commit is contained in:
c-okelly 2018-03-11 12:27:19 +00:00
parent 6a7bfe269a
commit 30b70dca68

View File

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