Skip to content

Commit cbdf4b7

Browse files
committed
refactor: 优化导出日志的时间格式
--bug=1048109 --user=王孝刚 【应用】对话日志导出后,提问时间格式显示问题 https://www.tapd.cn/57709429/s/1598300
1 parent da96ccf commit cbdf4b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/application/serializers/chat_serializers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ def to_row(row: Dict):
189189
f"{improve_paragraph_list[index].get('title')}\n{improve_paragraph_list[index].get('content')}"
190190
for index in range(len(improve_paragraph_list))]),
191191
row.get('message_tokens') + row.get('answer_tokens'), row.get('run_time'),
192-
str(row.get('create_time'))]
192+
str(row.get('create_time').strftime('%Y-%m-%d %H:%M:%S')
193+
)]
193194

194195
def export(self, data, with_valid=True):
195196
if with_valid:

0 commit comments

Comments
 (0)