From f9c4f689158cba50052bfe098a5c88dbf53f5c99 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 25 Jul 2024 12:59:42 +0000 Subject: [PATCH] config pour utilisation du script dans flask --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index 58fbbce..af9cf87 100644 --- a/app.py +++ b/app.py @@ -1,7 +1,7 @@ from flask import Flask, render_template, request, redirect, url_for, jsonify, flash from flask_login import LoginManager, UserMixin, login_user, login_required, logout_user, current_user import json -from main import main, load_config +from main import main, traitement app = Flask(__name__) app.secret_key = 'your_secret_alex-design_key-2024' @@ -49,7 +49,6 @@ def index(): @login_required def run(): filigramme = request.form['filigramme'] - config = load_config() result = traitement(filigramme) # on passe l'argument a la function 'main' du programme return jsonify(result)