refactor: remove download

This commit is contained in:
Matthias Jung
2026-02-06 23:46:12 +01:00
parent 8f7e88132e
commit 752ca35da7
7 changed files with 28 additions and 54 deletions
+2 -5
View File
@@ -5,16 +5,13 @@ from jinja2 import Environment, FileSystemLoader
from mistletoe import Document
import src.config as config
import src.download as download
from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
conf = config.Config()
dl = download.Download(conf)
dl.download_git_content()
def parse_katalog():
with open("data/git_content/contents/questions/fragenkatalog3b.json") as fragenkatalog_file:
with open(conf.p_data_fragenkatalog) as fragenkatalog_file:
fragenkatalog = json.load(fragenkatalog_file)
questions = {}
@@ -39,7 +36,7 @@ questions = parse_katalog()
def question_stub(number):
"""Combines the original question dataset from BNetzA with our internal metadata"""
with open("data/git_content/contents/questions/metadata3b.json") as metadata_file:
with open(conf.p_data_metadata) as metadata_file:
metadata = json.load(metadata_file)
question = questions[number]
metadata = metadata[f"{number}"]