Skip to content

Commit 4a65bf3

Browse files
fix: fixed datetime format
1 parent f4ee225 commit 4a65bf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/commons/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ def get_hourly_latency_metrics(db: Session, chatbot_id: str):
177177
)
178178
latency_per_hour = []
179179
for item in hourly_average_latency:
180-
latency_per_hour.append({"created_at": item[0], "time": item[1]})
180+
created_datetime = item[0] + "00:00"
181+
latency_per_hour.append({"created_at": created_datetime, "time": item[1]})
181182
return latency_per_hour
182183

183184

0 commit comments

Comments
 (0)