From ba2b11c28f8c8c47c9b8a0f3e891cb6e3a781faa Mon Sep 17 00:00:00 2001 From: kthouky Date: Tue, 8 Aug 2023 13:02:40 +0200 Subject: [PATCH] fix --- fediseer/apis/v1/censures.py | 1 - fediseer/database/functions.py | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fediseer/apis/v1/censures.py b/fediseer/apis/v1/censures.py index f87835a..0ac7000 100644 --- a/fediseer/apis/v1/censures.py +++ b/fediseer/apis/v1/censures.py @@ -17,7 +17,6 @@ class CensuresGiven(Resource): and the results will be a set of all their censures together. ''' domains_list = domains_csv.split(',') - logger.info(domains_list) self.args = self.get_parser.parse_args() instances = database.find_multiple_instance_by_domains(domains_list) if not instances: diff --git a/fediseer/database/functions.py b/fediseer/database/functions.py index 1fe668a..1e3f7c7 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.endorsements, + Instance.censures_given, ).options( - joinedload(Instance.endorsements), + joinedload(Instance.censures_given), ).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.approvals, + Instance.censures_received, ).options( - joinedload(Instance.approvals), + joinedload(Instance.censures_received), ).filter( Censure.censured_id == censured_id ).group_by(