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.
'''
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:

View File

@ -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(