mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: 优化导出日志的时间格式
--bug=1048109 --user=王孝刚 【应用】对话日志导出后,提问时间格式显示问题 https://www.tapd.cn/57709429/s/1598300
This commit is contained in:
parent
da96ccfe43
commit
cbdf4b7fd9
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue