mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 11:42:25 +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},
|
timestamp::{parse_duration, CalDateTime},
|
||||||
Error,
|
Error,
|
||||||
};
|
};
|
||||||
use anyhow::{anyhow, Result};
|
|
||||||
use chrono::Duration;
|
use chrono::Duration;
|
||||||
use ical::{
|
use ical::{
|
||||||
generator::IcalEvent,
|
generator::IcalEvent,
|
||||||
@@ -31,7 +30,7 @@ impl EventObject {
|
|||||||
// This is safe since we enforce the event's existence in the constructor
|
// This is safe since we enforce the event's existence in the constructor
|
||||||
if self.event.get_property("RRULE").is_some() {
|
if self.event.get_property("RRULE").is_some() {
|
||||||
// TODO: understand recurrence rules
|
// 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") {
|
if let Some(dtend) = self.event.get_property("DTEND") {
|
||||||
|
|||||||
Reference in New Issue
Block a user