From c23b4cf979c447614f06b38d44b4685649d6e3c4 Mon Sep 17 00:00:00 2001 From: dasman Date: Mon, 11 Nov 2024 03:44:54 +0300 Subject: [PATCH] tau: fix multiple values for assign and tags --- bin/tau/tau-python/tau | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/tau/tau-python/tau b/bin/tau/tau-python/tau index fc4a618228fc..a5410bcbbd50 100755 --- a/bin/tau/tau-python/tau +++ b/bin/tau/tau-python/tau @@ -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, "", @@ -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)