Skip to content

Commit 7560f4c

Browse files
committed
feat: add chat log step display
#324 #742
1 parent f8240ac commit 7560f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/chat/curd/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def get_chat_log_history(session: SessionDep, chat_record_id: int, current_user:
606606
if chat_record.create_time and chat_record.finish_time:
607607
try:
608608
time_diff = chat_record.finish_time - chat_record.create_time
609-
total_duration = time_diff.total_seconds()
609+
total_duration = round(time_diff.total_seconds(), 2)
610610
except Exception:
611611
total_duration = None
612612

0 commit comments

Comments
 (0)