refactor: 优化导出日志的时间格式
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

--bug=1048109 --user=王孝刚 【应用】对话日志导出后,提问时间格式显示问题 https://www.tapd.cn/57709429/s/1598300
This commit is contained in:
wxg0103 2024-10-25 15:30:54 +08:00 committed by wxg0103
parent da96ccfe43
commit cbdf4b7fd9

View File

@ -189,7 +189,8 @@ class ChatSerializers(serializers.Serializer):
f"{improve_paragraph_list[index].get('title')}\n{improve_paragraph_list[index].get('content')}"
for index in range(len(improve_paragraph_list))]),
row.get('message_tokens') + row.get('answer_tokens'), row.get('run_time'),
str(row.get('create_time'))]
str(row.get('create_time').strftime('%Y-%m-%d %H:%M:%S')
)]
def export(self, data, with_valid=True):
if with_valid: