This commit is contained in:
Amira24523
2024-12-12 01:48:35 +01:00
+4 -1
View File
@@ -82,7 +82,10 @@ def insert_data_mongo(id, filepath,pChunk):
'filepath': filepath,
'chunk_content': pChunk,
}
collection.insert_one(dokument)
result = collection.insert_one(dokument)
if result.acknowledged:
collection.create_index("doc_id")
def reload_files():
# path = input("Please provider path to folder: ")