diff --git a/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc b/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc index b53cf12..a6f841f 100644 Binary files a/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc and b/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc differ diff --git a/standards/templatetags/counter_tag.py b/standards/templatetags/counter_tag.py index cbad929..34fcb03 100644 --- a/standards/templatetags/counter_tag.py +++ b/standards/templatetags/counter_tag.py @@ -341,12 +341,13 @@ def getactualworkingday(user): returnstat = list(wd)[0].start return returnstat +#TASK: Hier checken, was los ist - so sollte kein Fehler passieren @register.simple_tag def getIsUserStartTime(user): today = date.today() starttime = False - if today >= user.usertime.usetime_start: + if user.usertime.usetime_start != None and today >= user.usertime.usetime_start: starttime = True return starttime