소스 검색

Überschriften Ist/Plan Jahr dynamisch

robert 1 년 전
부모
커밋
630840e409
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 0
      static/main.js
  2. 3 3
      webservice/file_io.py

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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"])

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.