mirror of
https://github.com/makeplane/plane.git
synced 2026-04-26 01:58:36 -05:00
fix: rendered the analytics for labels (#5906)
* fix: rendered the analytics for labels * fix: analytics exports
This commit is contained in:
committed by
GitHub
parent
2caf23fb71
commit
6d08cf2757
@@ -112,8 +112,8 @@ class AnalyticsEndpoint(BaseAPIView):
|
||||
Issue.objects.filter(
|
||||
workspace__slug=slug,
|
||||
**filters,
|
||||
labels__id__isnull=False
|
||||
& Q(label_issue__deleted_at__isnull=True),
|
||||
labels__id__isnull=False,
|
||||
label_issue__deleted_at__isnull=True,
|
||||
)
|
||||
.distinct("labels__id")
|
||||
.order_by("labels__id")
|
||||
|
||||
@@ -132,7 +132,8 @@ def get_label_details(slug, filters):
|
||||
Issue.objects.filter(
|
||||
workspace__slug=slug,
|
||||
**filters,
|
||||
labels__id__isnull=False & Q(label_issue__deleted_at__isnull=True),
|
||||
labels__id__isnull=False,
|
||||
label_issue__deleted_at__isnull=True,
|
||||
)
|
||||
.distinct("labels__id")
|
||||
.order_by("labels__id")
|
||||
|
||||
@@ -439,5 +439,6 @@ ATTACHMENT_MIME_TYPES = [
|
||||
"text/javascript",
|
||||
"application/json",
|
||||
"text/xml",
|
||||
"text/csv",
|
||||
"application/xml",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user