Commit 3536edb7 authored by Nishtha Jain's avatar Nishtha Jain
Browse files

self bio embedding added

parent 69039e22
......@@ -23,7 +23,7 @@ def get_distinct_field_values(field_name):
client = pymongo.MongoClient(MONGO_HOST)
collection = client[MONGO_DB][MONGO_COLLECTION]
return (collection.distinct(field_name))
return ([x[field_name] for x in collection.find({},{field_name:1})])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment