pull/17/head
kthouky 2023-08-08 13:02:40 +02:00
parent 45a3caac65
commit ba2b11c28f
2 changed files with 4 additions and 5 deletions

View File

@ -17,7 +17,6 @@ class CensuresGiven(Resource):
and the results will be a set of all their censures together. and the results will be a set of all their censures together.
''' '''
domains_list = domains_csv.split(',') domains_list = domains_csv.split(',')
logger.info(domains_list)
self.args = self.get_parser.parse_args() self.args = self.get_parser.parse_args()
instances = database.find_multiple_instance_by_domains(domains_list) instances = database.find_multiple_instance_by_domains(domains_list)
if not instances: if not instances:

View File

@ -67,9 +67,9 @@ def get_all_censured_instances_by_censuring_id(censuring_ids):
query = db.session.query( query = db.session.query(
Instance Instance
).outerjoin( ).outerjoin(
Instance.endorsements, Instance.censures_given,
).options( ).options(
joinedload(Instance.endorsements), joinedload(Instance.censures_given),
).filter( ).filter(
Censure.censuring_id.in_(censuring_ids) Censure.censuring_id.in_(censuring_ids)
).group_by( ).group_by(
@ -81,9 +81,9 @@ def get_all_censuring_instances_by_censured_id(censured_id):
query = db.session.query( query = db.session.query(
Instance Instance
).outerjoin( ).outerjoin(
Instance.approvals, Instance.censures_received,
).options( ).options(
joinedload(Instance.approvals), joinedload(Instance.censures_received),
).filter( ).filter(
Censure.censured_id == censured_id Censure.censured_id == censured_id
).group_by( ).group_by(