From 24df044e1f6de26ace932f448e33098d57deac7f Mon Sep 17 00:00:00 2001 From: piair Date: Thu, 24 Aug 2023 14:28:49 +0200 Subject: [PATCH] bon la ca marche 100% --- Flask/app.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index 16cad3b..c14bf60 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -452,10 +452,9 @@ def maxi(dict): m = int(i) return(m+1) -def setup_grafana(): - if get("http://localhost:3000/api/datasources").text == "[]" : - subprocess.Popen(["bash",'/app/MsRewards-Reborn/grafana-config/request.sh']) -setup_grafana() + +subprocess.Popen(["bash",'/app/MsRewards-Reborn/grafana-config/request.sh']) + #if __name__ == '__main__': # print("this is launched") # setup_grafana()