Skip to content

Commit

Permalink
increment all_categories in progress tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcam-src committed Aug 26, 2024
1 parent 50058c4 commit e9ea6dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/services/tasks/download_stats_migration_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e9ea6dc

Please sign in to comment.