correction après changement API
This commit is contained in:
parent
720a2040f8
commit
43774b4af7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue