fix
parent
ba2b11c28f
commit
e852a521be
|
@ -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.censures_given,
|
Instance.censures_received,
|
||||||
).options(
|
).options(
|
||||||
joinedload(Instance.censures_given),
|
joinedload(Instance.censures_received),
|
||||||
).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.censures_received,
|
Instance.censures_given,
|
||||||
).options(
|
).options(
|
||||||
joinedload(Instance.censures_received),
|
joinedload(Instance.censures_given),
|
||||||
).filter(
|
).filter(
|
||||||
Censure.censured_id == censured_id
|
Censure.censured_id == censured_id
|
||||||
).group_by(
|
).group_by(
|
||||||
|
|
Loading…
Reference in New Issue