From f0c0b8e9c2392f3c1db3479d587a74fb8b183671 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 29 Aug 2021 16:37:44 -0300 Subject: [PATCH] fix typo --- litecord/blueprints/users.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/litecord/blueprints/users.py b/litecord/blueprints/users.py index b552d9e..e219d6e 100644 --- a/litecord/blueprints/users.py +++ b/litecord/blueprints/users.py @@ -361,7 +361,9 @@ async def get_library(): return jsonify([]) -async def map_guild_ids_to_mutual_list(mutual_guild_ids: List[int]) -> List[dict]: +async def map_guild_ids_to_mutual_list( + mutual_guild_ids: List[int], peer_id: int +) -> List[dict]: mutual_result = [] # ascending sorting @@ -415,7 +417,9 @@ async def get_profile(peer_id: int): } if request.args.get("with_mutual_guilds") in (None, True): - result["mutual_guilds"] = await map_guild_ids_to_mutual_list(mutual_guilds) + result["mutual_guilds"] = await map_guild_ids_to_mutual_list( + mutual_guilds, peer_id + ) return jsonify(result)