From b79a20151c57eeb4759177613c34d4c32040014c Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 30 Sep 2024 13:28:42 +0100 Subject: [PATCH] fix: uploads --- application/api/internal/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/internal/routes.py b/application/api/internal/routes.py index 2081d6ea..c15012ef 100755 --- a/application/api/internal/routes.py +++ b/application/api/internal/routes.py @@ -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":