Skip to content

Commit

Permalink
chore(data-warehouse): sync from start of month (#21870)
Browse files Browse the repository at this point in the history
* sync from start of month

* condense
  • Loading branch information
EDsCODE authored Apr 25, 2024
1 parent 5d4ee64 commit 6a0c028
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ async def import_data_activity(inputs: ImportDataActivityInputs) -> tuple[TSchem
# Hacky just for specific user
region = get_instance_region()
if region == "EU" and inputs.team_id == 11870:
prev_day = timezone.now() - dt.timedelta(days=1)
start_date = prev_day.replace(hour=0, minute=0, second=0, microsecond=0)
end_date = start_date + dt.timedelta(1)
start_date = timezone.now().replace(day=1, hour=0, minute=0, second=0, microsecond=0)
end_date = start_date + dt.timedelta(weeks=5)
else:
start_date = None
end_date = None
Expand Down

0 comments on commit 6a0c028

Please sign in to comment.