Add another comment.

pull/1/head
Simon Quigley 7 years ago
parent 4748c9cc88
commit 8d888dea87

@ -101,6 +101,7 @@ def main():
for task in tasksearch: for task in tasksearch:
dataepoch = data["action"]["epoch"] dataepoch = data["action"]["epoch"]
datemodified = task["dateModified"] datemodified = task["dateModified"]
# All comments within ten seconds of the request are fair game
if datemodified >= (dataepoch - 10) and datemodified <= (dataepoch + 10) and task["comments"] != []: if datemodified >= (dataepoch - 10) and datemodified <= (dataepoch + 10) and task["comments"] != []:
print("It's a comment, yes.") print("It's a comment, yes.")
comment = True comment = True

Loading…
Cancel
Save