From 93a00363b2267efe78e0ec4c60044b179d3b21b1 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 9 Feb 2023 08:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E8=AE=B0=E5=BD=95=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ecm/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/ecm/views.py b/apps/ecm/views.py index 5bb4d1f5..d3023c59 100644 --- a/apps/ecm/views.py +++ b/apps/ecm/views.py @@ -26,7 +26,7 @@ from apps.ecm.service import update_remind_read from apps.utils.viewsets import CustomGenericViewSet, CustomModelViewSet from apps.utils.export import export_excel_img -obj_cate_dict = {'people': '人员', 'operation': '作业', 'other': '其他'} +obj_cate_dict = {'people': '人员', 'opl': '作业', 'other': '其他'} mark_dict = {10: '正常', 20: '误报'} # Create your views here. @@ -171,7 +171,6 @@ class EventViewSet(ListModelMixin, RetrieveModelMixin, DestroyModelMixin, Custom for i in odata: cates_str = '' - ep_str = '' for m in i['cates_']: cates_str = cates_str + m['name'] + '/' data.append( @@ -188,7 +187,6 @@ class EventViewSet(ListModelMixin, RetrieveModelMixin, DestroyModelMixin, Custom i['face_img'] ] ) - print(data) return Response({'path': export_excel_img(field_data, data, '事件记录')})