Skip to content

Commit

Permalink
update wildcard pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mymatsubara committed May 2, 2024
1 parent 35f9531 commit 83dcd3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions datasus_db/datasources/sia_pa.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def import_sia_pa(db_file="datasus.db", years=["*"], states=["*"], months=["*"])
import_from_ftp(
[MAIN_TABLE],
[
f"/dissemin/publicos/SIASUS/200801_/Dados/PA{state.upper()}{format_year(year)}{format_month(month)}.dbc*"
f"/dissemin/publicos/SIASUS/200801_/Dados/PA{state.upper()}{format_year(year)}{format_month(month)}*.dbc"
for year in years
for state in states
for month in months
Expand Down Expand Up @@ -113,6 +113,5 @@ def map_sia_pa(df: pl.DataFrame):
Column("PA_SRV_C", pl.Utf8),
Column("PA_INE", pl.Utf8),
Column("PA_NAT_JUR", pl.Utf8),

],
)

0 comments on commit 83dcd3f

Please sign in to comment.