Browse Source

Überschriften Ist/Plan Jahr dynamisch

robert 1 year ago
parent
commit
630840e409
2 changed files with 3 additions and 3 deletions
  1. 0 0
      static/main.js
  2. 3 3
      webservice/file_io.py

File diff suppressed because it is too large
+ 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"])

Some files were not shown because too many files changed in this diff