mirror of
https://github.com/lubuntu-team/lugito.git
synced 2025-05-01 21:11:28 +00:00
!= None isn't needed; you can just do e.g. "if foo:".
This commit is contained in:
parent
9020af538a
commit
3c7448284a
4
lugito
4
lugito
@ -52,7 +52,7 @@ def connecttoirc():
|
|||||||
def isnewtask(task):
|
def isnewtask(task):
|
||||||
modified = None
|
modified = None
|
||||||
for data in task:
|
for data in task:
|
||||||
if modified != None:
|
if modified:
|
||||||
if data["dateCreated"] == data["dateModified"] and data["dateCreated"] == modified:
|
if data["dateCreated"] == data["dateModified"] and data["dateCreated"] == modified:
|
||||||
modified = data["dateCreated"]
|
modified = data["dateCreated"]
|
||||||
newtask = True
|
newtask = True
|
||||||
@ -190,4 +190,4 @@ if __name__ == "__main__":
|
|||||||
t = threading.Thread(target=listenirc)
|
t = threading.Thread(target=listenirc)
|
||||||
t.daemon = True
|
t.daemon = True
|
||||||
t.start()
|
t.start()
|
||||||
app.run(host="0.0.0.0", port=5000)
|
app.run(host="0.0.0.0", port=5000)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user