fix: sflog work_date 默认start_time.date
This commit is contained in:
parent
e331002538
commit
cdc70177bb
|
|
@ -96,7 +96,7 @@ def make_sflogs(mgroup: Mgroup, start_date: datetime.date, end_date: datetime.da
|
||||||
sflog, is_created = SfLog.objects.get_or_create(mgroup=mgroup, shift=shift, start_time=start_time, defaults={
|
sflog, is_created = SfLog.objects.get_or_create(mgroup=mgroup, shift=shift, start_time=start_time, defaults={
|
||||||
"mgroup": mgroup,
|
"mgroup": mgroup,
|
||||||
"shift": shift,
|
"shift": shift,
|
||||||
"work_date": current_date,
|
"work_date": start_time.date(),
|
||||||
"start_time": start_time,
|
"start_time": start_time,
|
||||||
"end_time": end_time,
|
"end_time": end_time,
|
||||||
"total_sec_now": total_sec,
|
"total_sec_now": total_sec,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue