feature: use constant metadata from file metadata3b.json
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user