No negative Days
This commit is contained in:
parent
4684df16f9
commit
050c8408d9
1 changed files with 3 additions and 0 deletions
|
@ -57,4 +57,7 @@ async def user_can_view_door(
|
|||
True iff das Türchen von Tag `day` user-sichtbar ist
|
||||
"""
|
||||
|
||||
if day < 0:
|
||||
raise HTTPException(status.HTTP_422_UNPROCESSABLE_ENTITY)
|
||||
|
||||
return day < await user_visible_doors()
|
||||
|
|
Loading…
Reference in a new issue