We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbb013b + d5e99f5 commit 030bd8aCopy full SHA for 030bd8a
src/server/api/common_api.py
@@ -15,7 +15,7 @@ def get_contacts(search_text):
15
names = search_text.split(" ")
16
if len(names) == 2:
17
query = text("select * from pdp_contacts where archived_date is null AND\
18
- where lower(first_name) like lower(:name1) and lower(last_name) like lower(:name2) \
+ lower(first_name) like lower(:name1) and lower(last_name) like lower(:name2) \
19
OR lower(first_name) like lower(:name2) and lower(last_name) like lower(:name1)")
20
query_result = connection.execute(query, name1='{}%'.format(names[0]), name2='{}%'.format(names[1]))
21
elif len(names) == 1:
0 commit comments