fix - search of quotas dashboard
This commit is contained in:
@@ -14,7 +14,7 @@ class QuotaDashboardService:
|
||||
|
||||
@staticmethod
|
||||
def get_dashboard(self, org: Organization, start_date: str = None, end_date: str = None,
|
||||
search_fields: list[str] = None, quota_is_closed: bool = False):
|
||||
search_fields: list[str] = None, quota_is_closed: bool = False, query_string: str = None):
|
||||
|
||||
if org.type.key == 'ADM':
|
||||
org_quota_stats = OrganizationQuotaStats.objects.filter(stat_type='quota', quota__is_closed=quota_is_closed)
|
||||
@@ -32,7 +32,8 @@ class QuotaDashboardService:
|
||||
start=start_date,
|
||||
end=end_date,
|
||||
date_field="create_date",
|
||||
search_fields=search_fields
|
||||
search_fields=search_fields,
|
||||
query_string=query_string
|
||||
).apply()
|
||||
|
||||
org_quota_stats = org_quota_stats.aggregate(
|
||||
|
||||
Reference in New Issue
Block a user