From 7adfd4f5606deceec6feaf6ef1ea2c0946f4167d Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 28 Jan 2026 18:59:21 +0800 Subject: [PATCH] feat: add chat log step display #324 #742 --- backend/apps/chat/curd/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/chat/curd/chat.py b/backend/apps/chat/curd/chat.py index 7d9a5939..81c8c788 100644 --- a/backend/apps/chat/curd/chat.py +++ b/backend/apps/chat/curd/chat.py @@ -606,7 +606,7 @@ def get_chat_log_history(session: SessionDep, chat_record_id: int, current_user: if chat_record.create_time and chat_record.finish_time: try: time_diff = chat_record.finish_time - chat_record.create_time - total_duration = time_diff.total_seconds() + total_duration = round(time_diff.total_seconds(), 2) except Exception: total_duration = None