Update the dvla response data to 0 page count

- as the response is fake, the notifications billable_unit is left at 0, the fake dvla response should also be 0. Otherwise there will be confusing logs reporting mismatched page count and billable units which are just research ones.
This commit is contained in:
Ken Tsang
2018-01-29 16:39:53 +00:00
parent 24e890fad5
commit 9122efc45e
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ def firetext_callback(notification_id, to):
@notify_celery.task(bind=True, name="create-fake-letter-response-file", max_retries=5, default_retry_delay=300)
def create_fake_letter_response_file(self, reference):
now = datetime.utcnow()
dvla_response_data = '{}|Sent|1|Sorted'.format(reference)
dvla_response_data = '{}|Sent|0|Sorted'.format(reference)
upload_file_name = 'NOTIFY.{}.RSP.TXT'.format(now.strftime('%Y%m%d%H%M%S'))
s3upload(