From 0ce4e123d987d19a1d9080cf6319754e2a5bf068 Mon Sep 17 00:00:00 2001 From: penner Date: Wed, 21 Dec 2022 23:38:33 +0000 Subject: [PATCH] Umbenennung get_visible_days --- api/advent22_api/routers/days.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/advent22_api/routers/days.py b/api/advent22_api/routers/days.py index 96e858e..e5f7612 100644 --- a/api/advent22_api/routers/days.py +++ b/api/advent22_api/routers/days.py @@ -32,8 +32,8 @@ async def get_date() -> str: return date.today().isoformat() -@router.get("/number") -async def get_number() -> int: +@router.get("/visible_days") +async def get_visible_days() -> int: today = date.today() if today.month == 12: @@ -48,7 +48,7 @@ async def get_number() -> int: async def user_can_view( index: int, ) -> bool: - return index < await get_number() + return index < await get_visible_days() @router.get(