fix: 打卡记录导出bug

This commit is contained in:
caoqianming 2023-03-24 17:49:33 +08:00
parent 1ed0a2542e
commit e0210c4bef
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ class ClockRecordViewSet(ListModelMixin, CustomGenericViewSet):
i['detail'].get('deviceName', None),
i['create_time']],
crOptions[i['type']],
crEoptions[i['exception_type']]
crEoptions[i['exception_type']] if i['exception_type'] else ''
)
return Response({'path': export_excel(field_data, data, '打卡记录')})