From e9ea6dc92eaff109acc3562b2467ead17ef9b267 Mon Sep 17 00:00:00 2001 From: David Campbell Date: Mon, 26 Aug 2024 18:25:34 -0400 Subject: [PATCH] increment all_categories in progress tracker --- app/services/tasks/download_stats_migration_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/tasks/download_stats_migration_service.rb b/app/services/tasks/download_stats_migration_service.rb index 6c92ee488..92a035950 100644 --- a/app/services/tasks/download_stats_migration_service.rb +++ b/app/services/tasks/download_stats_migration_service.rb @@ -56,6 +56,7 @@ def migrate_to_new_table(csv_path) # Recreate or update objects in new table csv_data_stats.each do |stat| create_hyc_download_stat(stat, progress_tracker) + progress_tracker[:all_categories] += 1 log_progress(progress_tracker[:all_categories], csv_data_stats.count, 'Migration') end Rails.logger.info("Migration complete: #{progress_tracker[:created]} created, #{progress_tracker[:updated]} updated, #{progress_tracker[:skipped]} skipped, #{progress_tracker[:failed]} failed")