fix: hour计数改为sec计数 make_sflogs 的bug

This commit is contained in:
caoqianming 2024-05-15 10:14:57 +08:00
parent a3f5e48b8c
commit 8753994468
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def make_sflogs(mgroup: Mgroup, start_date: datetime.date, end_date: datetime.da
end_time += datetime.timedelta(days=1)
else:
start_time -= datetime.timedelta(days=1)
total_sec = (end_time - start_time).total_seconds
total_sec = (end_time - start_time).total_seconds()
total_hour = total_sec / 3600
SfLog.objects.get_or_create(mgroup=mgroup, shift=shift, start_time=start_time, defaults={
"mgroup": mgroup,