|
|
@ -15,7 +15,7 @@ def friends_serialize(friends: list, external_friends: list) -> dict:
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
for external_friend in external_friends:
|
|
|
|
for external_friend in external_friends:
|
|
|
|
status = external_friend.status if external_friend.status else 'null'
|
|
|
|
status = external_friend.status if hasattr(external_friend, 'status') else 'null'
|
|
|
|
|
|
|
|
|
|
|
|
serialized_friends["external_friends"].append({
|
|
|
|
serialized_friends["external_friends"].append({
|
|
|
|
"id": str(external_friend["_id"]),
|
|
|
|
"id": str(external_friend["_id"]),
|
|
|
|