feat: ecm 提高导出数据限制
This commit is contained in:
parent
a8160867ae
commit
6f7a732618
|
@ -175,8 +175,8 @@ class EventViewSet(ListModelMixin, RetrieveModelMixin, DestroyModelMixin, Custom
|
|||
{"name": "人脸图", "type": "img"},
|
||||
]
|
||||
queryset = self.filter_queryset(self.get_queryset())
|
||||
if queryset.count() > 200:
|
||||
raise ParseError('数量超过200,请筛选后导出')
|
||||
if queryset.count() > 1000:
|
||||
raise ParseError('数量超过1000,请筛选后导出')
|
||||
odata = EventSerializer(queryset, many=True).data
|
||||
# 处理数据
|
||||
data = []
|
||||
|
|
Loading…
Reference in New Issue