Skip to content

Commit

Permalink
tau: fix multiple values for assign and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dasman committed Nov 11, 2024
1 parent 21ca366 commit c23b4cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/tau/tau-python/tau
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def task_table(task):
val = f"{args}"
event = f"{who} added {val} to {act}"
if val[0] == "-":
event = f"{who} removed {val} from {act}"
event = f"{who} removed {val[1:]} from {act}"
table.append([
Style.DIM + event + Style.RESET_ALL,
"",
Expand Down Expand Up @@ -391,14 +391,14 @@ def wrap_comment(comment, width):
return '\n'.join(lines)

async def modify_task(refid, args, server_name, port):
changes = {}
changes = {}
changes["assign"] = []
changes["tags"] = []
for arg in args:
# This must go before the next elif block
if arg.startswith("@") or arg.startswith("-@"):
changes["assign"] = []
changes["assign"].append(arg)
elif arg.startswith("+") or arg.startswith("-"):
changes["tags"] = []
changes["tags"].append(arg)
elif arg.lower() in ["desc", "description"]:
task = await api.fetch_task(refid, server_name, port)
Expand Down

0 comments on commit c23b4cf

Please sign in to comment.