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 users_serialize(users: list) -> list:
|
|
serialized_users: list = []
|
|
for user in users:
|
|
serialized_users.append({
|
|
"id": str(user["_id"]),
|
|
"username": user["username"]
|
|
})
|
|
return serialized_users |