Browse Source

审批流程

guoyuanquan@mail.taiji.com.cn 3 months ago
parent
commit
050293cc74

+ 0 - 1
api/controllers/console/datasets/datasets_document.py

@@ -848,7 +848,6 @@ class DocumentStatusApi(DocumentResource):
         document_ids = request.args.getlist("document_id")
         for document_id in document_ids:
             document = self.get_document(dataset_id, document_id)
-
             indexing_cache_key = "document_{}_indexing".format(document.id)
             cache_result = redis_client.get(indexing_cache_key)
             if cache_result is not None:

+ 1 - 0
api/fields/document_fields.py

@@ -40,6 +40,7 @@ document_fields = {
     "enable_application": fields.String,
 }
 
+
 document_with_segments_fields = {
     "id": fields.String,
     "position": fields.Integer,

+ 1 - 0
api/models/dataset.py

@@ -386,6 +386,7 @@ class Document(db.Model):  # type: ignore[name-defined]
 
     DATA_SOURCES = ["upload_file", "notion_import", "website_crawl"]
 
+
     @property
     def display_status(self):
         status = None

+ 1 - 0
api/services/account_service.py

@@ -482,6 +482,7 @@ class AccountService:
 
         return account
 
+
     @staticmethod
     def get_user_through_id(id: str) -> Optional[Account]:
         account: Optional[Account] = db.session.query(Account).filter(Account.id == id).first()

+ 1 - 0
api/services/dataset_service.py

@@ -1275,6 +1275,7 @@ class DocumentService:
                 f"You have reached the limit of your subscription. Only {can_upload_size} documents can be uploaded."
             )
 
+
     @staticmethod
     def build_document(
         dataset: Dataset,