From f941220d8c81c52a63b59ee4a7192f8425e2794b Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Sun, 20 May 2018 12:52:48 -0500 Subject: [PATCH] Make printing a little bit more verbose. --- lugito | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lugito b/lugito index 6cbb7dc..f9d2515 100755 --- a/lugito +++ b/lugito @@ -84,6 +84,7 @@ def main(): taskexists = False if taskexists: + print("Task exists, checking to see if it's new.") # First, let's see if it's a new task newcomment = False epoch = False @@ -92,11 +93,15 @@ def main(): if task["dateCreated"] == task["dateModified"] and task["dateCreated"] == epoch: newcomment = True else: + print("Nope, not new.") newcomment = False break else: 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 not newcomment: commentid = None @@ -130,6 +135,7 @@ def main(): message = message + "edited a message on the task: " + link elif newcomment == True: message = message + "just created this task: " + link + print(message) sendnotice(message) return "OK"