mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 18:52:30 -05:00
include date being processed in the migrate nightly stats command
This commit is contained in:
@@ -616,8 +616,11 @@ def migrate_data_to_ft_notification_status(start_date, end_date):
|
|||||||
"""
|
"""
|
||||||
result = db.session.execute(sql, {"start": process_date, "end": process_date + timedelta(days=1)})
|
result = db.session.execute(sql, {"start": process_date, "end": process_date + timedelta(days=1)})
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
print('ft_notification_status: --- Completed took {}ms. Migrated {} rows.'.format(datetime.now() - start_time,
|
print('ft_notification_status: --- Completed took {}ms. Migrated {} rows for {}.'.format(
|
||||||
result.rowcount))
|
datetime.now() - start_time,
|
||||||
|
result.rowcount,
|
||||||
|
process_date
|
||||||
|
))
|
||||||
process_date += timedelta(days=1)
|
process_date += timedelta(days=1)
|
||||||
|
|
||||||
total_updated += result.rowcount
|
total_updated += result.rowcount
|
||||||
|
|||||||
Reference in New Issue
Block a user