correction après changement API

This commit is contained in:
secrétaire 2024-04-24 20:13:16 +02:00
parent 720a2040f8
commit 43774b4af7
1 changed files with 3 additions and 10 deletions

View File

@ -34,13 +34,6 @@ SENDMAIL_LOCATION = "/usr/sbin/sendmail" # sendmail location
BUF=[] BUF=[]
GITEA_URL = "https://forge.a-lec.org" 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(): def gestion_get_secret():
with open(GESTION_SECRET_FILE) as sfile: with open(GESTION_SECRET_FILE) as sfile:
return sfile.readline().replace("\n", "") return sfile.readline().replace("\n", "")
@ -124,7 +117,7 @@ def new_registrations_worker():
reg_firstname, reg_postalcode)) reg_firstname, reg_postalcode))
# Check if exists # Check if exists
request = "SELECT numero FROM membres \ request = "SELECT numero FROM users \
WHERE email = '{}' and nom = '{} {}'".format( WHERE email = '{}' and nom = '{} {}'".format(
reg_attribmail, reg_attribmail,
reg_name, reg_name,
@ -162,7 +155,7 @@ def new_registrations_worker():
BUF.append("Erreur : {}".format(answer)) BUF.append("Erreur : {}".format(answer))
# Check if exists now # Check if exists now
request = "SELECT numero FROM membres \ request = "SELECT numero FROM users \
WHERE email = '{}' and nom = '{} {}'".format( WHERE email = '{}' and nom = '{} {}'".format(
reg_attribmail, reg_attribmail,
reg_name, reg_name,
@ -218,7 +211,7 @@ def validate_registrations_worker():
PREBUF.append("\n* {}\n".format(numcode)) PREBUF.append("\n* {}\n".format(numcode))
# Gather information # Gather information
request = "SELECT * FROM membres \ request = "SELECT * FROM users \
WHERE numero = '{}'".format(numero) WHERE numero = '{}'".format(numero)
# Check status # Check status