Merge pull request #3543 from alphagov/run-billing-for-longer-178125825

Recalculate billing rows for 10 days (prev. 4)
This commit is contained in:
Ben Thorner
2022-05-19 11:27:28 +01:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ def create_nightly_billing(day_start=None):
else:
# When calling the task its a string in the format of "YYYY-MM-DD"
day_start = datetime.strptime(day_start, "%Y-%m-%d").date()
for i in range(0, 4):
for i in range(0, 10):
process_day = (day_start - timedelta(days=i)).isoformat()
create_nightly_billing_for_day.apply_async(