You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
def friends_serialize(friends: list) -> list:
|
|
serialized_friends: list = []
|
|
for friend in friends:
|
|
serialized_friends.append({
|
|
"id": str(friend["_id"]),
|
|
"user_id": friend["user_id"]
|
|
})
|
|
return serialized_friends |