Skip to content

Commit

Permalink
Update search.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rafpyprog authored Feb 21, 2025
1 parent b4ff598 commit 5055f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sgs/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def parse_search_response(response, language: str) -> Optional[list]:

try:
try:
df = pd.read_html(HTML, attrs={"id": "tabelaSeries"}, flavor="html5lib", skiprows=1)[0]
df = pd.read_html(HTML, attrs={"id": "tabelaSeries"}, flavor="html5lib", skiprows=1)[0] # type: ignore
except AttributeError:
df = pd.read_html(HTML, attrs={"id": "tabelaSeries"}, flavor="lxml", skiprows=1)[0]
df = pd.read_html(HTML, attrs={"id": "tabelaSeries"}, flavor="lxml", skiprows=1)[0] # type: ignore

df[START] = df[START].map(lambda x: to_datetime(str(x), language))
df[LAST] = df[LAST].map(lambda x: to_datetime(str(x), language))
Expand Down

0 comments on commit 5055f48

Please sign in to comment.