Commit c4ed18dcc42ce29268e191f3fb62cdc8cd45e137
1 parent
cfa657e4
Exists in
master
and in
1 other branch
improve log
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
script/process_merit_rules.rb
@@ -84,8 +84,9 @@ Environment.all.each do |environment| | @@ -84,8 +84,9 @@ Environment.all.each do |environment| | ||
84 | end | 84 | end |
85 | end | 85 | end |
86 | 86 | ||
87 | + amount = environment.people.count | ||
87 | environment.people.each.with_index(1) do |person, person_index| | 88 | environment.people.each.with_index(1) do |person, person_index| |
88 | - puts "Updating #{person.identifier} level" | 89 | + puts "Updating #{person.identifier} level #{person_index}/#{amount}" |
89 | person.update_attribute(:level, person.gamification_plugin_calculate_level) | 90 | person.update_attribute(:level, person.gamification_plugin_calculate_level) |
90 | end | 91 | end |
91 | 92 |