Skip to content

Commit

Permalink
rename constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tricktx committed Sep 22, 2023
1 parent 7154f4e commit acc8cf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pipelines/datasets/br_stf_corte_aberta/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@


def check_for_data():
log("Iniciando web scrapping")
web_scrapping()

log("Iniciando o check for data")
arquivos = os.listdir(stf_constants.STF_INPUT.value)
for arquivo in arquivos:
if arquivo.endswith(".csv"):
Expand Down
6 changes: 2 additions & 4 deletions pipelines/datasets/br_stf_corte_aberta/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ def web_scrapping():


def read_csv():
arquivos = os.listdir("/mnt/d/download/br_stf_decisoes/teste/")
arquivos = os.listdir(stf_constants.STF_INPUT.value)
for arquivo in arquivos:
if arquivo.endswith(".csv"):
df = pd.read_csv(
"/mnt/d/download/br_stf_decisoes/teste/" + arquivo, dtype=str
)
df = pd.read_csv(stf_constants.STF_INPUT.value + arquivo, dtype=str)
return df


Expand Down

0 comments on commit acc8cf7

Please sign in to comment.