0
This commit is contained in:
11
classes.py
11
classes.py
@@ -7,17 +7,16 @@ class Activity:
|
||||
id: str
|
||||
task_id: int
|
||||
task_title: str
|
||||
tag_id: str
|
||||
description: str
|
||||
project_id: str
|
||||
time_spent: float
|
||||
date_start: datetime
|
||||
date_end: datetime
|
||||
|
||||
@property
|
||||
def is_tracked(self):
|
||||
return self.description.startswith("*")
|
||||
date_end: datetime = None
|
||||
is_tracked: bool = False
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.date_start}: {self.description.strip("*")} для задачи "{self.task_title}"'
|
||||
return f'{self.date_start}: {self.description} для задачи "{self.task_title}"'
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
Reference in New Issue
Block a user