From 0c6bf684f801927f4a5e8d20a04979579c90ac2f Mon Sep 17 00:00:00 2001 From: kthouky Date: Tue, 8 Aug 2023 12:45:01 +0200 Subject: [PATCH] fix --- fediseer/database/functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fediseer/database/functions.py b/fediseer/database/functions.py index 114085d..d569114 100644 --- a/fediseer/database/functions.py +++ b/fediseer/database/functions.py @@ -49,7 +49,7 @@ def get_all_endorsed_instances_by_approving_id(approving_ids): ) return query.all() -def get_all_approving_instances_by_endorsed_id(endorsed_ids): +def get_all_approving_instances_by_endorsed_id(endorsed_id): query = db.session.query( Instance ).outerjoin( @@ -57,7 +57,7 @@ def get_all_approving_instances_by_endorsed_id(endorsed_ids): ).options( joinedload(Instance.approvals), ).filter( - Endorsement.endorsed_id.in_(endorsed_ids) + Endorsement.endorsed_id == endorsed_id ).group_by( Instance.id )