This commit is contained in:
2025-05-15 15:02:23 +03:00
parent c44f16656c
commit 41d687cec4
4 changed files with 40 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ from datetime import datetime
@dataclass
class Activity:
id: str
task_id: int
task_title: str
description: str
@@ -15,7 +16,7 @@ class Activity:
return self.description.startswith("*")
def __str__(self):
return f'{self.date}: {self.description.strip("*")} для задачи "{self.task_title}"' + (" - ЗАТРЕКАНА" if self.is_tracked else "")
return f'{self.date}: {self.description.strip("*")} для задачи "{self.task_title}"'
@dataclass