фикс задачи

This commit is contained in:
zakhy 2024-08-14 12:09:06 +07:00
parent 1776d2a43f
commit 7b2b651f23

View File

@ -40,7 +40,7 @@ def create_worktime_data() -> int:
.distinct("time_minute")
)
if not latest_records:
return "No scales records"
return f"No scales records. {now_date}"
current_record = latest_records[0]
for record in latest_records[1:]:
delta = (record.time - current_record.time).seconds / 60