Merge pull request #76 from c-okelly/issue_74
Add back isSuspended method
This commit is contained in:
commit
4b6c2270df
@ -468,15 +468,17 @@ class AnkiBridge:
|
||||
|
||||
return False
|
||||
|
||||
def isSuspended(self, card):
|
||||
card = self.collection().getCard(card)
|
||||
if card.queue == -1:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def areSuspended(self, cards):
|
||||
suspended = []
|
||||
for card in cards:
|
||||
card = self.collection().getCard(card)
|
||||
if card.queue == -1:
|
||||
suspended.append(True)
|
||||
else:
|
||||
suspended.append(False)
|
||||
suspended.append(self.isSuspended(card))
|
||||
return suspended
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user