Improve the logic a little bit.

This commit is contained in:
Simon Quigley 2018-05-20 02:34:07 -05:00
parent b72c57bb89
commit 977cec1c37

2
lugito
View File

@ -121,7 +121,7 @@ def main():
fulltaskname = phab.phid.query(phids=[data["object"]["phid"]])[data["object"]["phid"]]["fullName"]
link = "\x032" + phab.phid.query(phids=[data["object"]["phid"]])[data["object"]["phid"]]["uri"] + "#" + str(commentid) + "\x03"
message = "\x033[\x03\x0313"+ fulltaskname +"\x03\x033]\x03 \x0315" + str(who) + "\x03 "
if comment == True and edited == False:
if comment == True:
message = message + "commented on the task: " + link
elif edited == True:
message = message + "edited a message on the task: " + link