curve: fix: task-note.py

This commit is contained in:
Anish Lakhwara 2023-06-03 21:47:27 +10:00
parent 37e25bb697
commit 262c0f8ded

View file

@ -37,7 +37,7 @@ def write_note(task_id: int):
task_project = os.popen(f"task _get {task_id}.project").read().strip("\n")
task_tags = os.popen(f"task _get {task_id}.tags").read().split(",")
if len(task_tags):
task_tags = ":".join(task_tags).strip("\n") + ":"
task_tags = ":".join(task_tags).strip("\n")
time = datetime.datetime.now().strftime("%y-%m-%d %H:%M")
with open(notes_file, "w") as f: