fixed minor issue with remote duration conversion #1

Merged
HEL merged 1 commits from dev into main 2025-02-23 20:47:53 +00:00
Showing only changes of commit c090b611e2 - Show all commits

View File

@ -267,6 +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)
else:
remote = timedelta()