Afegir partitures de llistes (cançoners)
This commit is contained in:
@@ -174,12 +174,13 @@ def set_tema(request: Request, logged_in: bool, playlist_id: int, set_id: int, e
|
||||
)
|
||||
|
||||
|
||||
def pagina(request: Request, playlist_id: int, logged_in: bool):
|
||||
async def pagina(request: Request, playlist_id: int, logged_in: bool):
|
||||
playlist = playlists_service.get_playlist(playlist_id=playlist_id)
|
||||
if not playlist:
|
||||
from fastapi import HTTPException
|
||||
raise HTTPException(status_code=404, detail="Could not find playlist")
|
||||
playlist = playlists_service.add_temes_to_playlist(playlist)
|
||||
playlist = await playlists_service.add_playlist_score_to_playlist(playlist)
|
||||
return templates.TemplateResponse(
|
||||
"fragments/playlist/pagina.html",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user