Skip to content

Commit

Permalink
alterando comparativo
Browse files Browse the repository at this point in the history
  • Loading branch information
tricktx committed Oct 3, 2023
1 parent 4ec5a60 commit 6b71725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/datasets/br_anp_precos_combustiveis/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def check_for_updates(dataset_id, table_id):
log(f"Última data no site da BD: {data_bq_obj}")

# Compara as datas para verificar se há atualizações
if data_obj == data_bq_obj:
if data_obj > data_bq_obj:
return True # Há atualizações disponíveis
else:
return False # Não há novas atualizações disponíveis
Expand Down

0 comments on commit 6b71725

Please sign in to comment.