From e852a521beb26c616bccde1c3426288992adcaeb Mon Sep 17 00:00:00 2001 From: kthouky Date: Tue, 8 Aug 2023 13:06:19 +0200 Subject: [PATCH] fix --- fediseer/database/functions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fediseer/database/functions.py b/fediseer/database/functions.py index 1e3f7c7..e40d2e8 100644 --- a/fediseer/database/functions.py +++ b/fediseer/database/functions.py @@ -67,9 +67,9 @@ def get_all_censured_instances_by_censuring_id(censuring_ids): query = db.session.query( Instance ).outerjoin( - Instance.censures_given, + Instance.censures_received, ).options( - joinedload(Instance.censures_given), + joinedload(Instance.censures_received), ).filter( Censure.censuring_id.in_(censuring_ids) ).group_by( @@ -81,9 +81,9 @@ def get_all_censuring_instances_by_censured_id(censured_id): query = db.session.query( Instance ).outerjoin( - Instance.censures_received, + Instance.censures_given, ).options( - joinedload(Instance.censures_received), + joinedload(Instance.censures_given), ).filter( Censure.censured_id == censured_id ).group_by(