feature: use constant metadata from file metadata3b.json

This commit is contained in:
Matthias Jung
2025-12-24 22:10:27 +01:00
parent 6764424b57
commit 09763ce240
6 changed files with 15767 additions and 5 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ questions = parse_katalog()
def question_stub(input):
"""Combines the original question dataset from BNetzA with our internal metadata"""
with open("data/metadata.json") as metadata_file:
with open("data/metadata3b.json") as metadata_file:
metadata = json.load(metadata_file)
number = metadata[f"{input}"]["number"] # Fragennummer z.B. AB123
+1 -1
View File
@@ -45,7 +45,7 @@ def filter_shuffle_answers(seq):
def question_stub(input):
"""Combines the original question dataset from BNetzA with our internal metadata"""
with open("data/metadata.json") as metadata_file:
with open("data/metadata3b.json") as metadata_file:
metadata = json.load(metadata_file)
number = metadata[f"{input}"]["number"] # Fragennummer z.B. AB123
+1 -1
View File
@@ -36,7 +36,7 @@ def test_question_translation_html():
}
def test_function(input):
with open("data/metadata.json") as file:
with open("data/metadata3b.json") as file:
metadata = json.load(file)
return metadata[f"{input}"].get("number")