-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds back in DB instructions to the readme and comments out unused se…
…arch functionality
- Loading branch information
Showing
2 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
from typing import Any | ||
# from typing import Any | ||
|
||
from core.dbt_data_api import DbtDataApi | ||
# from core.dbt_data_api import DbtDataApi | ||
|
||
DBT_DATA_API = DbtDataApi() | ||
# DBT_DATA_API = DbtDataApi() | ||
|
||
|
||
def search_data_api(search_query: str) -> dict[str, Any]: | ||
"""Search company reports. | ||
# def search_data_api(search_query: str) -> dict[str, Any]: | ||
# """Search regulations.""" | ||
|
||
Takes a company search query and returns filtered results with report | ||
counts. | ||
Returns a dictionary containing: | ||
- results: List of filtered company results with report counts. | ||
- request_exception: Any exception raised during the API request. | ||
- truncated: Whether the results were truncated. | ||
""" | ||
data = DBT_DATA_API.search_regulations() | ||
return { | ||
"results": data, | ||
} | ||
# data = DBT_DATA_API.search_regulations() | ||
# return { | ||
# "results": data, | ||
# } |