pull/17/head
kthouky 2023-08-08 12:45:01 +02:00
parent 2b9e1207f6
commit 0c6bf684f8
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ def get_all_endorsed_instances_by_approving_id(approving_ids):
)
return query.all()
def get_all_approving_instances_by_endorsed_id(endorsed_ids):
def get_all_approving_instances_by_endorsed_id(endorsed_id):
query = db.session.query(
Instance
).outerjoin(
@ -57,7 +57,7 @@ def get_all_approving_instances_by_endorsed_id(endorsed_ids):
).options(
joinedload(Instance.approvals),
).filter(
Endorsement.endorsed_id.in_(endorsed_ids)
Endorsement.endorsed_id == endorsed_id
).group_by(
Instance.id
)