From 9db4a79364c2c6b51bf9eb4b9cb81f87e68ded56 Mon Sep 17 00:00:00 2001 From: Anton Kamalov Date: Tue, 22 Oct 2024 23:58:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=D0=BE=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D0=BF=D1=80=D0=B8=D1=87=D0=B8=D0=BD=D0=B5=20"JSON"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/app.py | 4 +--- App/menu.json | 3 --- App/templates/main_menu.html | 4 +--- 3 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 App/menu.json diff --git a/App/app.py b/App/app.py index 0930f53..fffda9b 100644 --- a/App/app.py +++ b/App/app.py @@ -13,9 +13,7 @@ app.register_blueprint(auth_bp, url_prefix='/auth') @app.route('/') def index(): - with open(path.join(path.dirname(__file__), 'menu.json')) as f: - urls = json.load(f) - return render_template('main_menu.html', menu=urls, ses=session) + return render_template('main_menu.html', ses=session) @app.route('/logout') @check_auth diff --git a/App/menu.json b/App/menu.json deleted file mode 100644 index 1af7457..0000000 --- a/App/menu.json +++ /dev/null @@ -1,3 +0,0 @@ -[ - {"name": "Меню запросов", "url": "requests_bp.sklad_zapros"} -] \ No newline at end of file diff --git a/App/templates/main_menu.html b/App/templates/main_menu.html index a7df8c7..d5d811e 100644 --- a/App/templates/main_menu.html +++ b/App/templates/main_menu.html @@ -12,9 +12,7 @@ {% else %} Авторизация {% endif %} - {% for point in menu %} - {{ point['name'] }} - {% endfor %} + Запросы \ No newline at end of file