Merge branch 'master' into develop

This commit is contained in:
Jude Nelson
2018-08-23 16:08:36 -04:00
3 changed files with 23 additions and 48 deletions

View File

@@ -251,7 +251,7 @@ def create_search_index():
search_profile['fullyQualifiedName'] = user['fqu']
search_profile['username'] = user['username']
usernames.append(user['username'])
usernames.append(user['fqu'])
search_profile['profile'] = profile
search_profiles.save(search_profile)

View File

@@ -223,7 +223,7 @@ def fetch_profiles(search_results, search_type="name"):
response = search_profiles.find({"twitter_handle": search_result})
elif search_type == 'username':
response = search_profiles.find({"username": search_result})
response = search_profiles.find({"fullyQualifiedName": search_result})
for result in response: