Icon Video auskommentiert weil kein Video

This commit is contained in:
holger.trampe 2020-10-29 19:07:00 +01:00
parent 7a5fc1b985
commit b3f2e00d09
2 changed files with 2 additions and 1 deletions

View File

@ -598,7 +598,8 @@ def loadaccounttime(user):
if(len(workday.breaks.all()) > 0):
for ele in workday.breaks.all():
sum_break += (ele.end - ele.start).seconds
if ele.end != None and ele.start != None:
sum_break += (ele.end - ele.start).seconds
finalsum = ((workday.end - workday.start).seconds - sum_break)
hastowork = datetime.timedelta(hours=workday.target)