Ver Fonte

Überschriften Ist/Plan Jahr dynamisch

robert há 1 ano atrás
pai
commit
630840e409
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 0 0
      static/main.js
  2. 3 3
      webservice/file_io.py

Diff do ficheiro suprimidas por serem muito extensas
+ 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"])

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff