Refactor: keep timestamp consistency (#12279)

### What problem does this PR solve?

keep timestamp consistency

### Type of change

- [x] Refactoring
This commit is contained in:
Stephen Hu
2025-12-29 12:02:43 +08:00
committed by GitHub
parent f9619defcc
commit 9883c572cd
2 changed files with 9 additions and 7 deletions

View File

@ -65,6 +65,7 @@ class EvaluationService(CommonService):
(success, dataset_id or error_message)
"""
try:
timestamp= current_timestamp()
dataset_id = get_uuid()
dataset = {
"id": dataset_id,
@ -73,8 +74,8 @@ class EvaluationService(CommonService):
"description": description,
"kb_ids": kb_ids,
"created_by": user_id,
"create_time": current_timestamp(),
"update_time": current_timestamp(),
"create_time": timestamp,
"update_time": timestamp,
"status": StatusEnum.VALID.value
}