Don't put soon events in ical
This commit is contained in:
parent
93aef1e251
commit
d8323ecfef
1 changed files with 3 additions and 3 deletions
|
@ -2,9 +2,9 @@ module IcalHelper
|
|||
def event_calendar
|
||||
cal = Icalendar::Calendar.new
|
||||
|
||||
items.find_all('/events/*/*.md').each do |i|
|
||||
cal.add_event(event_for(i))
|
||||
end
|
||||
items.find_all('/events/*/*.md')
|
||||
.select { |x| x[:soon] == nil }
|
||||
.each {|i| cal.add_event(event_for(i)) }
|
||||
|
||||
cal.to_ical
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue