jack 1 주 전
부모
커밋
bcd11692fd
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      app/services/file/impl/r2r_file.py

+ 4 - 3
app/services/file/impl/r2r_file.py

@@ -131,11 +131,12 @@ class R2RFileService(OSSFileService):
             # file_key = doc.metadata.file_key
             # file_key = doc.metadata.title if file_key is None else file_key
             text = doc.text
-            if "text" not in files:
+            if "text" in files:
                 files["text"] += f"\n\n{text}"
             else:
                 files["text"] = text
-
+        print("aaaaaaaaaaaaaa")
+        print(files)
         return files
 
     @staticmethod
@@ -189,7 +190,7 @@ class R2RFileService(OSSFileService):
                 # file_key = doc.metadata.file_key
                 # file_key = doc.metadata.title if file_key is None else file_key
                 text = doc.text
-                if "text" not in files:
+                if "text" in files:
                     files["text"] += f"\n\n{text}"
                 else:
                     files["text"] = text