Skip to content

Commit

Permalink
fix path bug on default
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Nov 17, 2023
1 parent ba77a67 commit 852b016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/api/answer/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def run_async_chain(chain, question, chat_history):

def get_vectorstore(data):
if "active_docs" in data:
if data["active_docs"].split("/")[1] == "default":
if data["active_docs"].split("/")[0] == "default":

Check warning on line 79 in application/api/answer/routes.py

View check run for this annotation

Codecov / codecov/patch

application/api/answer/routes.py#L79

Added line #L79 was not covered by tests
vectorstore = ""
elif data["active_docs"].split("/")[0] == "local":
vectorstore = "indexes/" + data["active_docs"]

Check warning on line 82 in application/api/answer/routes.py

View check run for this annotation

Codecov / codecov/patch

application/api/answer/routes.py#L81-L82

Added lines #L81 - L82 were not covered by tests
Expand Down

0 comments on commit 852b016

Please sign in to comment.