Skip to content

Commit

Permalink
fix: uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Sep 30, 2024
1 parent bc4f9c3 commit b79a201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/api/internal/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit b79a201

Please sign in to comment.