Merge pull request #2672 from alphagov/command-fix

fix end_date bug in migrate ft notification status command
This commit is contained in:
Leo Hemsted
2019-12-06 13:56:39 +00:00
committed by GitHub

View File

@@ -504,6 +504,7 @@ def migrate_data_to_ft_notification_status(start_date, end_date, notification_ty
notification_types = [SMS_TYPE, LETTER_TYPE, EMAIL_TYPE] if notification_type is None else [notification_type]
start_date = start_date.date()
end_date = end_date.date()
for day_diff in range((end_date - start_date).days):
process_day = start_date + timedelta(days=day_diff)
for notification_type in notification_types: