Skip to content

Commit

Permalink
fix(API): slice publisher subquery to fix issue with multiple values
Browse files Browse the repository at this point in the history
  • Loading branch information
sennierer committed Sep 4, 2024
1 parent 5ed2df9 commit 9904e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis_ontology/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def get_queryset(self):
triple_set_from_obj__subj_id=OuterRef("pk"),
triple_set_from_obj__prop__name_reverse__in=["realises"],
).annotate(
publisher=Subquery(expression_publisher),
publisher=Subquery(expression_publisher[:1]),
place=ArraySubquery(expression_place),
)
).values(
Expand Down

0 comments on commit 9904e06

Please sign in to comment.