modifié : views/inscription.py

This commit is contained in:
kitoy 2022-08-07 18:25:37 +02:00
parent 78227870bc
commit f33e9f611a

View File

@ -124,6 +124,9 @@ def signin(token) :
tmp = cursor.fetchone()
username = tmp[0]
invitations_count=tmp[1] - 1
if username == "pywallter":
cursor.execute("""DELETE from users where name = ?""", (username,))
else:
cursor.execute("""UPDATE users set invitations=?, Token='' where name=?""", (invitations_count, username,))
conn.commit()