add lowercase lookup for patient & Update user api
This commit is contained in:
parent
5dd6a70329
commit
69fe58ffaf
2 changed files with 47 additions and 13 deletions
|
|
@ -97,8 +97,8 @@ async def read_all_patientsByUser(email: str):
|
|||
query = "Select * from patients "
|
||||
query += "inner join users "
|
||||
query += "on doc_office_id = docOffice_id "
|
||||
query += "where users.email= %s"
|
||||
cursor.execute(query, (email,))
|
||||
query += "where lower(users.email)= %s"
|
||||
cursor.execute(query, (email.lower(),))
|
||||
items = [
|
||||
{
|
||||
"idpatients": item[0],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue