fix: uploads

This commit is contained in:
Alex
2024-09-30 13:28:42 +01:00
parent bc4f9c3442
commit b79a20151c

View File

@@ -43,7 +43,7 @@ def upload_index_files():
id = secure_filename(request.form["id"])
type = secure_filename(request.form["type"])
remote_data = request.form["remote_data"] if "remote_data" in request.form else None
sync_frequency = secure_filename(request.form["sync_frequency"])
sync_frequency = secure_filename(request.form["sync_frequency"]) if "sync_frequency" in request.form else None
save_dir = os.path.join(current_dir, "indexes", str(id))
if settings.VECTOR_STORE == "faiss":