Skip to content

Commit

Permalink
Fix get wrong scheduled status (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakyns committed May 21, 2018
1 parent 1a7dce6 commit 1b52250
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion omise/__init__.py
Expand Up @@ -1425,7 +1425,8 @@ def destroyed(self):
:rtype: bool
"""
return self._attributes.get('deleted', False)
status = self._attributes.get('status')
return True if status == 'deleted' else False

def occurrence(self):
"""Retrieve all occurrences for a given schedule.
Expand Down

0 comments on commit 1b52250

Please sign in to comment.