округлил вывод трудозатрат до трех знаков

This commit is contained in:
2026-07-06 16:32:42 +03:00
parent 9cf4cc75f0
commit c94a31a5c1
4 changed files with 5 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ from config import config
logger = logging.getLogger(__name__)
def time_to_hour(time: timedelta) -> float:
return time.total_seconds() / 3600
return round(time.total_seconds() / 3600, 3)
def today_start() -> datetime:
td = datetime.today()