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