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
|
def event_calendar
|
||||||
cal = Icalendar::Calendar.new
|
cal = Icalendar::Calendar.new
|
||||||
|
|
||||||
items.find_all('/events/*/*.md').each do |i|
|
items.find_all('/events/*/*.md')
|
||||||
cal.add_event(event_for(i))
|
.select { |x| x[:soon] == nil }
|
||||||
end
|
.each {|i| cal.add_event(event_for(i)) }
|
||||||
|
|
||||||
cal.to_ical
|
cal.to_ical
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue