fix
parent
45a3caac65
commit
ba2b11c28f
|
@ -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:
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue