Skip to content

Commit

Permalink
Commented out unused code in api_search function
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Jan 12, 2024
1 parent a04cdee commit 6a70e3e
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 @@ -366,6 +366,6 @@ def api_search():
source_log_docs.append({"title": doc.metadata['title'].split('/')[-1], "text": doc.page_content})

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

View check run for this annotation

Codecov / codecov/patch

application/api/answer/routes.py#L363-L366

Added lines #L363 - L366 were not covered by tests
else:
source_log_docs.append({"title": doc.page_content, "text": doc.page_content})

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

View check run for this annotation

Codecov / codecov/patch

application/api/answer/routes.py#L368

Added line #L368 was not covered by tests
yield f"data:{data}\n\n"
#yield f"data:{data}\n\n"
return source_log_docs

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

View check run for this annotation

Codecov / codecov/patch

application/api/answer/routes.py#L370

Added line #L370 was not covered by tests

0 comments on commit 6a70e3e

Please sign in to comment.