mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
separate batch num from date
DVLA don't care about the naming conventions of zip files, other than it must start with `NOTIFY.` and end with `.ZIP`. So lets format the date in a more readable way, and separate it from the batch number
This commit is contained in:
@@ -120,7 +120,8 @@ def collate_letter_pdfs_for_day(date=None):
|
||||
subfolder=date
|
||||
)
|
||||
for i, letters in enumerate(group_letters(letter_pdfs)):
|
||||
dvla_filename = 'NOTIFY.{date}{num:06}.ZIP'.format(date=date.replace('-', ''), num=i + 1)
|
||||
# eg NOTIFY.2018-12-31.001.ZIP
|
||||
dvla_filename = 'NOTIFY.{date}.{num:03}.ZIP'.format(date=date, num=i + 1)
|
||||
filenames = [letter['Key'] for letter in letters]
|
||||
current_app.logger.info(
|
||||
'Calling task zip-and-send-letter-pdfs for {} pdfs to upload {} with total size {:,} bytes'.format(
|
||||
|
||||
Reference in New Issue
Block a user