mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
recurrence rules: We can now just not return a last occurence instead of throwing an error
This commit is contained in:
@@ -2,7 +2,6 @@ use crate::{
|
||||
timestamp::{parse_duration, CalDateTime},
|
||||
Error,
|
||||
};
|
||||
use anyhow::{anyhow, Result};
|
||||
use chrono::Duration;
|
||||
use ical::{
|
||||
generator::IcalEvent,
|
||||
@@ -31,7 +30,7 @@ impl EventObject {
|
||||
// This is safe since we enforce the event's existence in the constructor
|
||||
if self.event.get_property("RRULE").is_some() {
|
||||
// TODO: understand recurrence rules
|
||||
return Err(anyhow!("event is recurring, we cannot handle that yet").into());
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
if let Some(dtend) = self.event.get_property("DTEND") {
|
||||
|
||||
Reference in New Issue
Block a user