This commit is contained in:
retoor 2025-10-06 08:05:47 +02:00
parent 6c50385a06
commit 8c242d1ff9

View File

@ -556,6 +556,7 @@ async def newspaper_latest(request: Request):
except IndexError:
pass
articles = []
first_newspaper = newspapers[0]
for newspaper in newspapers:
@ -566,7 +567,7 @@ async def newspaper_latest(request: Request):
article[key] = str(value).strip().replace(' ', '')
return templates.TemplateResponse("newspaper_view.html", {
"request": request,
"newspaper": newspaper,
"newspaper": first_newspaper,
"articles": articles
})