Эх сурвалжийг харах

Überschriften Ist/Plan Jahr dynamisch

robert 1 жил өмнө
parent
commit
630840e409

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
static/main.js


+ 3 - 3
webservice/file_io.py

@@ -134,10 +134,10 @@ def save(filename):
     return "File saved with new data!"
 
 
-@bp.route("/config", methods=["GET"])
-def config():
+@bp.route("/config/<year>", methods=["GET"])
+def config(year):
     cfg = ConfigLoad(str(config_dir))
-    return Response(response=json.dumps(cfg.load_file("reisacher", "2024")), mimetype="application/json")
+    return Response(response=json.dumps(cfg.load_file("reisacher", year)), mimetype="application/json")
 
 
 @bp.route("/accounts/<period>", methods=["GET"])

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно