fix: 导出时用压缩图
This commit is contained in:
parent
9ba12d06da
commit
39a3001211
|
@ -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']
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue