Fix project count for datasets and pipelines

This commit is contained in:
allegroai 2023-03-23 19:15:42 +02:00
parent 797e503e67
commit eb2b9cbd9a

View File

@ -92,7 +92,7 @@ def get_entities_count(call: APICall, company, request: EntitiesCountRequest):
query = Q()
if (
entity_cls in (Project, Task)
and field != "reports"
and field not in ("reports", "pipelines", "datasets")
and not request.search_hidden
):
query &= Q(system_tags__ne=EntityVisibility.hidden.value)