Deploy folkugat web

This commit is contained in:
marc committed 2025-03-30 20:52:47 +02:00
1 parent d596861a2e
commit 6962d70468
20 files changed
+182 -1101

No files matched your search

+2 -7
View File
@@ -1,7 +1,5 @@
from fastapi import HTTPException, Request
from fastapi import Request
from folkugat_web.model import temes as model
from folkugat_web.services.temes import query as temes_q
from folkugat_web.services.temes.links import guess_link_type
from folkugat_web.templates import templates
@@ -73,10 +71,7 @@ def link_icon(request: Request, logged_in: bool, link: model.Link):
)
def score(request: Request, logged_in: bool, tema_id: int):
tema = temes_q.get_tema_by_id(tema_id)
if not tema:
raise HTTPException(status_code=404, detail="Could not find tune")
def score(request: Request, logged_in: bool, tema: model.Tema):
return templates.TemplateResponse(
"fragments/tema/score.html",
{