fix: 导出时用压缩图

This commit is contained in:
caoqianming 2023-08-22 10:42:01 +08:00
parent 9ba12d06da
commit 39a3001211
1 changed files with 4 additions and 1 deletions

View File

@ -185,6 +185,9 @@ class EventViewSet(ListModelMixin, RetrieveModelMixin, DestroyModelMixin, Custom
cates_str = ''
for m in i['cates_']:
cates_str = cates_str + m['name'] + '/'
if i['global_img']:
path, end = i['global_img'].split('.')
i['global_img_compressed'] = path + '_compressed.' + end
data.append(
[
cates_str,
@ -195,7 +198,7 @@ class EventViewSet(ListModelMixin, RetrieveModelMixin, DestroyModelMixin, Custom
i['create_time'],
i.get('handle_user_name', None),
mark_dict[i['mark']],
i['global_img'],
i['global_img_compressed'],
i['face_img']
]
)