Rendering code refactor

This commit is contained in:
marc
2025-04-26 19:09:59 +02:00
parent 7a823a98ab
commit d132e6fd60
33 changed files with 638 additions and 188 deletions

View File

@@ -5,7 +5,11 @@ from folkugat_web.model import temes as model
def get_tema_by_id(tema_id: int) -> model.Tema | None:
return temes_q.get_tema_by_id(tema_id)
return temes_q.get_tema_by_id(tema_id=tema_id)
def get_temes_by_ids(tema_ids: list[int]) -> list[model.Tema]:
return temes_q.get_temes_by_ids(tema_ids=tema_ids)
def tema_compute_stats(