fix: hour计数改为sec计数 make_sflogs 的bug
This commit is contained in:
parent
a3f5e48b8c
commit
8753994468
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue