diff --git a/app/helpers/timeline_helper.rb b/app/helpers/timeline_helper.rb index 2f19f4a..0e23752 100644 --- a/app/helpers/timeline_helper.rb +++ b/app/helpers/timeline_helper.rb @@ -37,15 +37,15 @@ module TimelineHelper amount = -1 start_week = month_start + week.weeks end_week = start_week + 7.days - puts "WEEK #{week} #{start_week} -- #{end_week}" + #puts "WEEK #{week} #{start_week} -- #{end_week}" @members.each do |mem| - puts "volunteer #{mem.name}" + #puts "volunteer #{mem.name}" next unless mem.arriving next unless mem.leaving next if mem.leaving <= start_week - puts "volunteer #{mem.name} leaving #{mem.leaving}" + #puts "volunteer #{mem.name} leaving #{mem.leaving}" next if mem.arriving >= end_week - puts "volunteer #{mem.name} arriving #{mem.arriving}" + #puts "volunteer #{mem.name} arriving #{mem.arriving}" amount += 1 end amount