modifié : views/inscription.py
This commit is contained in:
parent
78227870bc
commit
f33e9f611a
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user