Merge pull request #76 from c-okelly/issue_74

Add back isSuspended method
This commit is contained in:
Alex Yatskov 2018-03-11 09:05:33 -07:00 committed by GitHub
commit 4b6c2270df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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