mirror of
https://github.com/Starlio-app/Website.git
synced 2025-04-07 03:25:26 +01:00
fix: fixed the wallpaper request for individual dates
This commit is contained in:
parent
923cd87a73
commit
f1d731e505
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ async def wallpaper(request: Request, day):
|
||||||
Returns:
|
Returns:
|
||||||
HTMLResponse: The wallpaper page or 404 error page.
|
HTMLResponse: The wallpaper page or 404 error page.
|
||||||
"""
|
"""
|
||||||
res = requests.get('https://api.starlio.space/wallpaper/{day}', timeout=3)
|
res = requests.get(f'https://api.starlio.space/wallpaper/{day}', timeout=3)
|
||||||
|
|
||||||
if (HTTPStatus(res.status_code).is_server_error
|
if (HTTPStatus(res.status_code).is_server_error
|
||||||
or HTTPStatus(res.status_code).is_client_error
|
or HTTPStatus(res.status_code).is_client_error
|
||||||
|
|
Loading…
Add table
Reference in a new issue