From c8e69ced978233fa4ddca8ecd3b466bb9956d187 Mon Sep 17 00:00:00 2001 From: jyong <718720800@qq.com> Date: Fri, 7 Mar 2025 13:58:17 +0800 Subject: [PATCH] fix parent-child retrival count --- api/models/dataset.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/models/dataset.py b/api/models/dataset.py index 7fa08ee94d..4bbbf11b02 100644 --- a/api/models/dataset.py +++ b/api/models/dataset.py @@ -230,14 +230,14 @@ class Dataset(db.Model): # type: ignore[name-defined] { "id": "built-in", "name": BuiltInField.upload_date, - "type": "date", + "type": "time", } ) doc_metadata.append( { "id": "built-in", "name": BuiltInField.last_update_date, - "type": "date", + "type": "time", } ) doc_metadata.append( @@ -510,7 +510,7 @@ class Document(db.Model): # type: ignore[name-defined] { "id": "built-in", "name": BuiltInField.upload_date, - "type": "date", + "type": "time", "value": self.created_at.timestamp(), } ) @@ -518,7 +518,7 @@ class Document(db.Model): # type: ignore[name-defined] { "id": "built-in", "name": BuiltInField.last_update_date, - "type": "date", + "type": "time", "value": self.updated_at.timestamp(), } )