fix: 修复可能的attendancecreatebug

This commit is contained in:
caoqianming 2024-01-31 10:07:53 +08:00
parent 986e9265d2
commit d6618ce25d
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ class AttendanceSerializer(CustomModelSerializer):
work_date, start_time_o) - datetime.timedelta(days=1)
validated_data['work_time_end'] = datetime.datetime.combine(
work_date, end_time_o)
return super().create(validated_data)
return super().create(validated_data)
def update(self, instance, validated_data):
new_data = {}