Преглед на файлове

fix: datasets documents update-by-file api missing assign field 'indexing_technique' internally (#14243)

tags/1.0.0
L8ng преди 8 месеца
родител
ревизия
b15ff4eb8c
No account linked to committer's email address
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4
    0
      api/controllers/service_api/dataset/document.py

+ 4
- 0
api/controllers/service_api/dataset/document.py Целия файл

@@ -336,6 +336,10 @@ class DocumentUpdateByFileApi(DatasetApiResource):

if not dataset:
raise ValueError("Dataset is not exist.")

# indexing_technique is already set in dataset since this is an update
args["indexing_technique"] = dataset.indexing_technique

if "file" in request.files:
# save file info
file = request.files["file"]

Loading…
Отказ
Запис