Skip to content

Commit

Permalink
Merge branch 'main' into staging/apuracao-faixa-horaria-subsidio
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Aug 19, 2024
2 parents 5cf3bea + 0ffb8c5 commit 6ace6ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipelines/migration/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1324,10 +1324,12 @@ def get_materialization_date_range( # pylint: disable=R0913
last_run = datetime(last_run.year, last_run.month, last_run.day)

# set start to last run hour (H)
start_ts = last_run.replace(second=0, microsecond=0).strftime(timestr)
start_ts = last_run.replace(second=0, microsecond=0)
if truncate_minutes:
start_ts = start_ts.replace(minute=0)

start_ts = start_ts.strftime(timestr)

# set end to now - delay

if not end_ts:
Expand Down

0 comments on commit 6ace6ca

Please sign in to comment.