string adjust
This commit is contained in:
@@ -381,7 +381,7 @@ def complete_register():
|
|||||||
password= data.get('password')
|
password= data.get('password')
|
||||||
country= data.get('country')
|
country= data.get('country')
|
||||||
|
|
||||||
FIND_USERNAME= "SELECT * FROM members WHERE username::text = '"+username+"'"
|
FIND_USERNAME= f"SELECT * FROM members WHERE username::text = '{username}' "
|
||||||
with connection:
|
with connection:
|
||||||
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
||||||
cursor.execute(FIND_USERNAME)
|
cursor.execute(FIND_USERNAME)
|
||||||
|
|||||||
Reference in New Issue
Block a user