From 3e4cd27b618ebb59459e3d9fd961616f13820e7b Mon Sep 17 00:00:00 2001 From: augustin64 Date: Wed, 30 Aug 2023 15:51:15 +0200 Subject: [PATCH] Fix:impossible de modifier des configs existantes --- Flask/app.py | 2 +- Flask/templates/config.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index 706a18a..b25aace 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -342,7 +342,7 @@ def config_post(): with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile: configs = json.load(inFile) - if action["data"] == "delete": + if action["action"] == "delete": print(action["config"]) configs.pop(action["config"]) else : diff --git a/Flask/templates/config.html b/Flask/templates/config.html index a751450..de495e3 100644 --- a/Flask/templates/config.html +++ b/Flask/templates/config.html @@ -129,10 +129,10 @@
- + - +