fix: Use dict keys for all RealDictCursor row access in Phase 2 code
Deploy Development / deploy (push) Successful in 50s
Build Test / lint-backend (push) Successful in 1s
Build Test / build-frontend (push) Successful in 15s

This commit is contained in:
Lars committed 2026-04-03 21:36:44 +02:00
1 parent 0725461056
commit ac2e7cf5bb
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -228,9 +228,9 @@ def load_question_catalog(db_connection) -> Dict[str, Dict]:
catalog = {}
for row in rows:
catalog[row[0]] = {
"answer_spectrum": row[1], # JSONB already parsed by psycopg2
"normalization_rules": row[2] # JSONB or None
catalog[row['question_type']] = {
"answer_spectrum": row['answer_spectrum'], # JSONB already parsed by psycopg2
"normalization_rules": row['normalization_rules'] # JSONB or None
}
logger.info(f"Loaded question catalog: {len(catalog)} types")