From 30755596755638c3af85b441ca844492e731b8de Mon Sep 17 00:00:00 2001 From: Torsten Date: Fri, 14 Jul 2023 13:21:41 +0300 Subject: [PATCH] debug --- app/helpers/timeline_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/timeline_helper.rb b/app/helpers/timeline_helper.rb index 99b8641..2f19f4a 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}" 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