This commit is contained in:
Torsten 2023-07-14 13:21:41 +03:00
parent 0c751e2a3e
commit 3075559675

View File

@ -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}"
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