Добавил отображение ДО

This commit is contained in:
2025-05-20 16:28:26 +03:00
parent d0edaf8318
commit dca5697b43
5 changed files with 55 additions and 7 deletions

View File

@@ -1,23 +1,26 @@
from dataclasses import dataclass
from datetime import datetime
from datetime import datetime, timedelta
from enums import ClockifyProjects, VetroProjects
@dataclass
class Activity:
id: str
task_id: int
vetro_project_id: str
vetro_project_id: VetroProjects
vetro_project_title: str
task_title: str
tag_id: str
description: str
project_id: str
project_id: ClockifyProjects
time_spent: float
date_start: datetime
date_end: datetime = None
is_tracked: bool = False
def __str__(self):
return f'{self.date_start}: {self.description} для задачи "{self.task_title}"'
return f'{self.date_start + timedelta(hours=3)}|{self.vetro_project_title}|{self.description} для задачи "{self.task_title}"'
@dataclass