Rendering code refactor
This commit is contained in:
@@ -3,8 +3,8 @@ from collections.abc import Iterable
|
||||
from typing import TypedDict
|
||||
|
||||
from folkugat_web.dal.sql import Connection, get_connection
|
||||
from folkugat_web.model import lilypond as lilypond_model
|
||||
from folkugat_web.model import temes as model
|
||||
from folkugat_web.model.lilypond.processing import RenderError
|
||||
|
||||
ScoreRowTuple = tuple[int, int, str, str, str, str | None, str | None, bool]
|
||||
|
||||
@@ -40,7 +40,7 @@ def row_to_score(row: ScoreRowTuple) -> model.Score:
|
||||
tema_id=row[1],
|
||||
title=row[2],
|
||||
source=row[3],
|
||||
errors=list(map(lilypond_model.RenderError.from_dict, errors_dicts)),
|
||||
errors=list(map(RenderError.from_dict, errors_dicts)),
|
||||
img_url=row[5],
|
||||
pdf_url=row[6],
|
||||
hidden=bool(row[7]),
|
||||
|
||||
Reference in New Issue
Block a user