mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2025-03-03 22:41:25 +03:00
fix: delete unused fstrings
This commit is contained in:
parent
a1baf74e8d
commit
6f304d650e
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ async def today_wallpaper(request: Request):
|
|||
Returns:
|
||||
HTMLResponse: The wallpaper page or 404 error page.
|
||||
"""
|
||||
res = requests.get(f'https://api.starlio.space/last', timeout=3)
|
||||
res = requests.get('https://api.starlio.space/last', timeout=3)
|
||||
|
||||
if HTTPStatus(res.status_code).is_server_error or HTTPStatus(res.status_code).is_client_error:
|
||||
return FileResponse('../web/html/error/404.html', status_code=HTTPStatus.NOT_FOUND)
|
||||
|
@ -57,7 +57,7 @@ async def wallpaper(request: Request, day):
|
|||
Returns:
|
||||
HTMLResponse: The wallpaper page or 404 error page.
|
||||
"""
|
||||
res = requests.get(f'https://api.starlio.space/wallpaper/{day}', timeout=3)
|
||||
res = requests.get('https://api.starlio.space/wallpaper/{day}', timeout=3)
|
||||
|
||||
if (HTTPStatus(res.status_code).is_server_error
|
||||
or HTTPStatus(res.status_code).is_client_error
|
||||
|
|
Loading…
Add table
Reference in a new issue