Update views.py

This commit is contained in:
2026-01-25 23:19:56 +01:00
parent ca62e8895a
commit ed1b7de7a7

View File

@@ -1019,16 +1019,6 @@ class AnalyticsView(APIView):
tags=["commerce", "analytics"],
summary="Generate custom analytics report",
description="Generate custom analytics based on specified modules and parameters",
request={
"type": "object",
"properties": {
"modules": {"type": "array", "items": {"type": "string", "enum": ["sales", "products", "customers", "shipping", "reviews"]}},
"start_date": {"type": "string", "format": "date-time"},
"end_date": {"type": "string", "format": "date-time"},
"period": {"type": "string", "enum": ["daily", "weekly", "monthly"]},
"options": {"type": "object"}
}
}
)
def post(self, request):
"""Generate custom analytics report based on specified modules"""