benjolo commited on
Commit
3443e32
1 Parent(s): 831f555

Update backend/mongodb/operations/calls.py

Browse files
backend/mongodb/operations/calls.py CHANGED
@@ -192,9 +192,6 @@ def full_text_search(collection, query):
192
  def fuzzy_search(collection, user_id, query):
193
 
194
  user_calls = collection.find({"$or": [{"caller_id": user_id}, {"callee_id": user_id}]})
195
- print("USER CALLS:", user_calls)
196
-
197
- print("COLLECTION:", collection)
198
 
199
  # drop any existing indexes and create new one
200
  collection.drop_indexes()
@@ -223,8 +220,6 @@ def fuzzy_search(collection, user_id, query):
223
  if doc['caller_id'] == user_id or doc['callee_id'] == user_id:
224
  records.append(doc)
225
 
226
- print(records)
227
-
228
  return records
229
 
230
 
 
192
  def fuzzy_search(collection, user_id, query):
193
 
194
  user_calls = collection.find({"$or": [{"caller_id": user_id}, {"callee_id": user_id}]})
 
 
 
195
 
196
  # drop any existing indexes and create new one
197
  collection.drop_indexes()
 
220
  if doc['caller_id'] == user_id or doc['callee_id'] == user_id:
221
  records.append(doc)
222
 
 
 
223
  return records
224
 
225