mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: return assignee avatars when x axis in assignee_email (#1049)
This commit is contained in:
parent
7b52fb885d
commit
8d6082183e
@ -76,11 +76,17 @@ class AnalyticsEndpoint(BaseAPIView):
|
||||
)
|
||||
)
|
||||
|
||||
assignee_avatars = {}
|
||||
if x_axis in ["assignees__email"]:
|
||||
assignee_avatars = Issue.objects.filter(
|
||||
workspace__slug=slug, **filters
|
||||
).values("assignees__avatar")
|
||||
|
||||
return Response(
|
||||
{
|
||||
"total": total_issues,
|
||||
"distribution": distribution,
|
||||
"extras": {"colors": colors},
|
||||
"extras": {"colors": colors, "assignee_avatars": assignee_avatars},
|
||||
},
|
||||
status=status.HTTP_200_OK,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user