[tasks] Fix bug in note str method

This commit is contained in:
2025-07-30 17:50:59 -04:00
parent 99dc86dc27
commit ae889bff7d

View File

@ -39,9 +39,10 @@ class TaskLogData(JSONDataclass):
def notes_as_str(self) -> str: def notes_as_str(self) -> str:
"""Return formatted notes with line breaks and no keys""" """Return formatted notes with line breaks and no keys"""
note_block = "" note_block = ""
if not self.notes: if isinstance(self.notes, list):
return note_block note_block = "</br>".join(self.notes)
if isinstance(self.notes, dict):
for id, content in self.notes.items(): for id, content in self.notes.items():
note_block += content + "</br>" note_block += content + "</br>"
return note_block return note_block