Fix router for today wallpaper

This commit is contained in:
Данил 2024-09-30 16:28:56 +03:00
parent aa9c79b478
commit aaf6afa449

View file

@ -13,7 +13,7 @@ template = Jinja2Templates(directory='./src/web/html')
@router.get('/wallpaper/today', response_class=HTMLResponse)
async def today_wallpaper(request: Request):
date = datetime.today().strftime('%Y-%m-%d')
res = requests.get(f'https://api.starlio.space/wallpaper/last')
res = requests.get(f'https://api.starlio.space/last')
if res.status_code != 200:
return FileResponse('./src/web/html/error/404.html')