From ef6b7d564a5c862aec0b8158668080cdf70e2d71 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Fri, 6 Dec 2019 16:10:11 +0000 Subject: [PATCH] make migrate-ft-notification-status command dates inclusive --- app/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commands.py b/app/commands.py index fcaa6b3af..b0d1c1964 100644 --- a/app/commands.py +++ b/app/commands.py @@ -505,7 +505,7 @@ def migrate_data_to_ft_notification_status(start_date, end_date, notification_ty start_date = start_date.date() end_date = end_date.date() - for day_diff in range((end_date - start_date).days): + for day_diff in range((end_date - start_date).days + 1): process_day = start_date + timedelta(days=day_diff) for notification_type in notification_types: print('create_nightly_notification_status_for_day triggered for {} and {}'.format(