Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKatsoulis committed Apr 16, 2018
1 parent f673f43 commit 6de6a98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scrader_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def company_search():
# print(user_id)
company_found = utils.company_typed_search(company_typed)
if company_found is not None:
company_for_url = "+".join(company_found.split())
if company_typed != company_found.lower():
response_data = {
"messages": [{
Expand All @@ -118,7 +119,7 @@ def company_search():
"Yes",
"url":
'http://146.185.138.240/company_specific/{}/{}'.format(
company_found, user_id),
company_for_url, user_id),
"type":
"json_plugin_url"
}, {
Expand All @@ -129,7 +130,7 @@ def company_search():
}

else:
return specific_company(company_found, user_id)
return specific_company(company_for_url, user_id)

else:
buttons = []
Expand Down

0 comments on commit 6de6a98

Please sign in to comment.