Permalink
Browse files

A step towards counting the number of steps for the progressbar for t…

…he first run
  • Loading branch information...
piotaixr authored and Aquaj committed Dec 20, 2018
1 parent 62e2f39 commit 5b28369f4ea57b91323d4359b533f4b070e71a8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ekylibre/first_run/folder.rb
@@ -26,7 +26,7 @@ def imports_dir

def run
step = 0
[@preferences, @imports, @company[:users], defaults].each { |d| step += d.try(:count) || 0 }
[@preferences, @imports, @company[:users], default_datasets].each { |d| step += d.try(:count) || 0 }
step += 1 if @preferences[:map_measure_srs].nil?
@progress = Progress.new('first_run', max: step)
ActiveRecord::Base.transaction do

0 comments on commit 5b28369

Please sign in to comment.