mirror of
https://github.com/lubuntu-team/lugito.git
synced 2025-05-03 13:51:28 +00:00
Make printing a little bit more verbose.
This commit is contained in:
parent
263d4ec192
commit
f941220d8c
6
lugito
6
lugito
@ -84,6 +84,7 @@ def main():
|
|||||||
taskexists = False
|
taskexists = False
|
||||||
|
|
||||||
if taskexists:
|
if taskexists:
|
||||||
|
print("Task exists, checking to see if it's new.")
|
||||||
# First, let's see if it's a new task
|
# First, let's see if it's a new task
|
||||||
newcomment = False
|
newcomment = False
|
||||||
epoch = False
|
epoch = False
|
||||||
@ -92,11 +93,15 @@ def main():
|
|||||||
if task["dateCreated"] == task["dateModified"] and task["dateCreated"] == epoch:
|
if task["dateCreated"] == task["dateModified"] and task["dateCreated"] == epoch:
|
||||||
newcomment = True
|
newcomment = True
|
||||||
else:
|
else:
|
||||||
|
print("Nope, not new.")
|
||||||
newcomment = False
|
newcomment = False
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
epoch = task["dateCreated"]
|
epoch = task["dateCreated"]
|
||||||
|
|
||||||
|
if newcomment:
|
||||||
|
print("Yes, it's a new comment.")
|
||||||
|
|
||||||
# If it's not a new task, let's see if it's a comment, and if it's just an edit
|
# If it's not a new task, let's see if it's a comment, and if it's just an edit
|
||||||
if not newcomment:
|
if not newcomment:
|
||||||
commentid = None
|
commentid = None
|
||||||
@ -130,6 +135,7 @@ def main():
|
|||||||
message = message + "edited a message on the task: " + link
|
message = message + "edited a message on the task: " + link
|
||||||
elif newcomment == True:
|
elif newcomment == True:
|
||||||
message = message + "just created this task: " + link
|
message = message + "just created this task: " + link
|
||||||
|
print(message)
|
||||||
sendnotice(message)
|
sendnotice(message)
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user