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(