Skip to content

Commit 8d6a819

Browse files
committed
[Fix] Fix unicode error
1 parent 28fd3b3 commit 8d6a819

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

healthtools_ke_api/views/sms_handler.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,24 @@ def build_query_response(query):
7070
if find_keyword_in_query(query, DOC_KEYWORDS):
7171
search_terms = find_keyword_in_query(query, DOC_KEYWORDS)
7272
query = query[:search_terms.start()] + query[search_terms.end():]
73+
print query
7374
doctors = get_doctors_from_cloudsearch(query)
7475
msg = construct_docs_response(doctors[:SMS_RESULT_COUNT])
75-
print msg
7676
return [msg]
7777
# Looking for Nurses keywords
7878
elif find_keyword_in_query(query, NO_KEYWORDS):
7979
search_terms = find_keyword_in_query(query, NO_KEYWORDS)
8080
query = query[:search_terms.start()] + query[search_terms.end():]
8181
nurses = get_nurses_from_nc_registry(query)
8282
msg = construct_nurse_response(nurses[:SMS_RESULT_COUNT])
83-
print msg
8483
return [msg]
8584
# Looking for clinical officers Keywords
8685
elif find_keyword_in_query(query, CO_KEYWORDS):
8786
search_terms = find_keyword_in_query(query, CO_KEYWORDS)
8887
query = query[:search_terms.start()] + query[search_terms.end():]
88+
print query
8989
clinical_officers = get_clinical_officers_from_cloudsearch(query)
9090
msg = construct_co_response(clinical_officers[:SMS_RESULT_COUNT])
91-
print msg
9291
return [msg]
9392
# Looking for nhif hospitals
9493
elif find_keyword_in_query(query, NHIF_KEYWORDS):

0 commit comments

Comments
 (0)