Skip to content

Commit

Permalink
INDY-1173: fix condition for datetime=None for command restart
Browse files Browse the repository at this point in the history
Signed-off-by: toktar <[email protected]>
  • Loading branch information
Toktar committed May 4, 2018
1 parent 8b733b0 commit a2c6606
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions indy_node/server/restarter.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def handleActionTxn(self, req: Request) -> None:

action = txn[ACTION]
if action == START:
when = None \
if DATETIME in txn.keys() and txn[DATETIME] in ["0", "", None] \
else dateutil.parser.parse(txn[DATETIME])
when = dateutil.parser.parse(txn[DATETIME]) \
if DATETIME in txn.keys() and txn[DATETIME] not in ["0", "", None] \
else None

if self.scheduledAction:
if self.scheduledAction == when:
Expand Down

0 comments on commit a2c6606

Please sign in to comment.