Skip to content

Commit

Permalink
Merge branch 'master' into staging/fix_br_stf_corte_aberta
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Oct 20, 2023
2 parents 92b5a31 + 467faae commit 978ae11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pipelines/datasets/br_ms_cnes/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def check_files_to_parse(
)
log("building next year/month to parse")
# 2. adicionar mais um no mes ou transformar pra 1 se for 12
# para ver se o mês seguinte já está disponível no FTP
# eg. last_date = 2023-04-01

year = str(last_date.year)
Expand All @@ -59,6 +60,8 @@ def check_files_to_parse(

if month <= 9:
month = "0" + str(month)
else:
month = str(month)

year_month_to_parse = year + month
log(f"year_month_to_parse (YYMM) is {year_month_to_parse}")
Expand Down

0 comments on commit 978ae11

Please sign in to comment.