Files
redmine_tracker/classes.py
2025-05-16 16:54:20 +03:00

29 lines
526 B
Python

from dataclasses import dataclass
from datetime import datetime
@dataclass
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 = None
is_tracked: bool = False
def __str__(self):
return f'{self.date_start}: {self.description} для задачи "{self.task_title}"'
@dataclass
class Tag:
id: str
title: str
def __str__(self):
return self.title