|
|
|
|
@ -228,10 +228,10 @@ def store_scores(db_path: str, results: list[dict[str, Any]]) -> int: |
|
|
|
|
""" |
|
|
|
|
CREATE TABLE IF NOT EXISTS extremity_scores_2d ( |
|
|
|
|
motion_id INTEGER PRIMARY KEY, |
|
|
|
|
stylistic_score INTEGER NOT NULL, |
|
|
|
|
material_score INTEGER NOT NULL, |
|
|
|
|
stylistic_rationale TEXT, |
|
|
|
|
material_rationale TEXT |
|
|
|
|
stijl_extremiteit INTEGER NOT NULL, |
|
|
|
|
stijl_toelichting TEXT, |
|
|
|
|
materiele_impact INTEGER NOT NULL, |
|
|
|
|
materiele_toelichting TEXT |
|
|
|
|
) |
|
|
|
|
""" |
|
|
|
|
) |
|
|
|
|
@ -241,14 +241,14 @@ def store_scores(db_path: str, results: list[dict[str, Any]]) -> int: |
|
|
|
|
con.execute( |
|
|
|
|
""" |
|
|
|
|
INSERT OR REPLACE INTO extremity_scores_2d |
|
|
|
|
(motion_id, stylistic_score, material_score, stylistic_rationale, material_rationale) |
|
|
|
|
(motion_id, stijl_extremiteit, stijl_toelichting, materiele_impact, materiele_toelichting) |
|
|
|
|
VALUES (?, ?, ?, ?, ?) |
|
|
|
|
""", |
|
|
|
|
( |
|
|
|
|
r["motion_id"], |
|
|
|
|
r["stijl_extremiteit"], |
|
|
|
|
r["materiele_impact"], |
|
|
|
|
r.get("stijl_toelichting"), |
|
|
|
|
r["materiele_impact"], |
|
|
|
|
r.get("materiele_toelichting"), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
|