removed logs
This commit is contained in:
@@ -40,22 +40,12 @@ class Members:
|
||||
# x=["1"]
|
||||
sqv = "SELECT * FROM members WHERE username='"+username+"'"
|
||||
with db:
|
||||
#with db.cursor(cursor_factory=NamedTupleCursor) as cursor:
|
||||
with db.cursor() as cursor:
|
||||
with db.cursor(cursor_factory=NamedTupleCursor) as cursor:
|
||||
#with db.cursor() as cursor:
|
||||
cursor.execute(sqv)
|
||||
#cursor.execute(sqv, x)
|
||||
member = cursor.fetchall()
|
||||
|
||||
column_names = [row[0] for row in cursor]
|
||||
|
||||
print("Column names:\n")
|
||||
for i in column_names:
|
||||
print(i)
|
||||
# cursor.execute(sqv,x)
|
||||
# result = cursor.fetchall()
|
||||
#
|
||||
# member = db.members.find_one({"username": username, "active": True})
|
||||
# print(member)
|
||||
if not member:
|
||||
return
|
||||
#member["_id"] = member[0]
|
||||
@@ -74,8 +64,8 @@ class Members:
|
||||
print( member )
|
||||
print('yyyyyyyyyyy---xxxxxxxxx')
|
||||
|
||||
for column in member:
|
||||
print(f"{column}")
|
||||
# for column in member:
|
||||
# print(f"{column}")
|
||||
|
||||
# print( member["password"] )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user