Compare commits

..

No commits in common. "af938f405d8859d50fded85fec9d0e39d76572ae" and "9d33377ac12120a5c8825bffd8d1044e1eaa998c" have entirely different histories.

View File

@ -267,8 +267,7 @@ def set_clocking(request, date: datetime.date):
clocking.out_pm = request.POST.get("out_pm", clocking.out_pm) or None
remote = request.POST.get("remote", clocking.remote) or None
if remote is not None:
if isinstance(remote, str):
remote = str_to_timedelta(remote)
remote = str_to_timedelta(remote)
else:
remote = timedelta()
clocking.remote = remote
@ -308,4 +307,4 @@ def set_real_sagex(request, id, month: datetime.date):
return JsonResponse({
"status": "success",
"sagex": RealSageXHoursSerializer(entry).data
})
})