From 43774b4af7f71695cd08e6cbe7778accf3e16392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?secr=C3=A9taire?= Date: Wed, 24 Apr 2024 20:13:16 +0200 Subject: [PATCH] =?UTF-8?q?correction=20apr=C3=A8s=20changement=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controle_adhesion/main.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/controle_adhesion/main.py b/controle_adhesion/main.py index b6eb3cb..36e3e59 100755 --- a/controle_adhesion/main.py +++ b/controle_adhesion/main.py @@ -34,13 +34,6 @@ SENDMAIL_LOCATION = "/usr/sbin/sendmail" # sendmail location BUF=[] GITEA_URL = "https://forge.a-lec.org" -# gestion_read("SELECT * FROM services_users su \ -# INNER JOIN membres m ON m.id = su.id_user \ -# INNER JOIN services_fees sf ON sf.id = su.id_fee \ -# LEFT JOIN acc_transactions_users tu ON tu.id_service_user = su.id \ -# LEFT JOIN acc_transactions_lines l ON l.id_transaction = tu.id_transaction \ -# WHERE m.id = 3 AND l.id_account = 481;") - def gestion_get_secret(): with open(GESTION_SECRET_FILE) as sfile: return sfile.readline().replace("\n", "") @@ -124,7 +117,7 @@ def new_registrations_worker(): reg_firstname, reg_postalcode)) # Check if exists - request = "SELECT numero FROM membres \ + request = "SELECT numero FROM users \ WHERE email = '{}' and nom = '{} {}'".format( reg_attribmail, reg_name, @@ -162,7 +155,7 @@ def new_registrations_worker(): BUF.append("Erreur : {}".format(answer)) # Check if exists now - request = "SELECT numero FROM membres \ + request = "SELECT numero FROM users \ WHERE email = '{}' and nom = '{} {}'".format( reg_attribmail, reg_name, @@ -218,7 +211,7 @@ def validate_registrations_worker(): PREBUF.append("\n* {}\n".format(numcode)) # Gather information - request = "SELECT * FROM membres \ + request = "SELECT * FROM users \ WHERE numero = '{}'".format(numero) # Check status