Increase the number of days we calculate billing from 3 to 10 days.

Log exception if the billing counts for letters are different in the dvla response file than what we collected.
This commit is contained in:
Rebecca Law
2018-07-24 16:28:30 +01:00
parent 1b21a12b83
commit 4fc004b00a
4 changed files with 10 additions and 8 deletions

View File

@@ -21,7 +21,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")
for i in range(0, 3):
for i in range(0, 10):
process_day = day_start - timedelta(days=i)
transit_data = fetch_billing_data_for_day(process_day=process_day)