!= None isn't needed; you can just do e.g. "if foo:".

pull/1/head
Simon Quigley 7 years ago
parent 9020af538a
commit 3c7448284a

@ -52,7 +52,7 @@ def connecttoirc():
def isnewtask(task):
modified = None
for data in task:
if modified != None:
if modified:
if data["dateCreated"] == data["dateModified"] and data["dateCreated"] == modified:
modified = data["dateCreated"]
newtask = True

Loading…
Cancel
Save