mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 00:03:07 +00:00
_security indexing
This commit is contained in:
parent
629c6d8f9d
commit
fd821d6ff2
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ async def user_can_view_day(
|
||||||
True iff das Türchen von Tag `day` user-sichtbar ist
|
True iff das Türchen von Tag `day` user-sichtbar ist
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if day < 0:
|
if day < 1:
|
||||||
raise HTTPException(status.HTTP_422_UNPROCESSABLE_ENTITY)
|
raise HTTPException(status.HTTP_422_UNPROCESSABLE_ENTITY)
|
||||||
|
|
||||||
return day < await user_visible_doors()
|
return day <= await user_visible_doors()
|
||||||
|
|
Loading…
Reference in a new issue