diff options
Diffstat (limited to '')
-rw-r--r-- | src/calendar.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/calendar.rs b/src/calendar.rs index c49e747..ab465ea 100644 --- a/src/calendar.rs +++ b/src/calendar.rs @@ -4,6 +4,7 @@ use ical::IcalParser; use chrono::Duration; use date::Date; +use event; use event::{Event, End}; use periodic::Periodic; use errors::EventError; @@ -62,8 +63,7 @@ impl Calendar { } pub fn get(&self, first: &Date, last: &Date) -> Vec<Event> { - // TODO: not all single, just the one by date - let mut events = self.single.clone(); + let mut events = event::get(&self.single, first, last).to_vec(); for p in &self.periodic { events.append(&mut p.get(first, last)); } |