benjolo commited on
Commit
5c55490
·
verified ·
1 Parent(s): 21b18a2

Update backend/mongodb/operations/calls.py

Browse files
backend/mongodb/operations/calls.py CHANGED
@@ -5,15 +5,6 @@ import sys
5
  from ..models.calls import UpdateCall, UserCall, UserCaptions
6
 
7
 
8
- # Used within calls to create call record in main.py
9
- def create_calls(collection, user: UserCall = Body(...)):
10
- calls = jsonable_encoder(user)
11
- new_calls = collection.insert_one(calls)
12
- created_calls = collection.find_one({"_id": new_calls.inserted_id})
13
-
14
- return created_calls
15
-
16
-
17
  def list_calls(collection, limit: int):
18
  try:
19
  calls = collection.find(limit = limit))
 
5
  from ..models.calls import UpdateCall, UserCall, UserCaptions
6
 
7
 
 
 
 
 
 
 
 
 
 
8
  def list_calls(collection, limit: int):
9
  try:
10
  calls = collection.find(limit = limit))