From 291bd967daf8afaff05d42c3a033e6363ceb3567 Mon Sep 17 00:00:00 2001 From: Lennart K <18233294+lennart-k@users.noreply.github.com> Date: Fri, 9 Jan 2026 10:32:50 +0100 Subject: [PATCH] Re-add get_last_occurence for sqlite store --- Cargo.lock | 10 +++++----- crates/store_sqlite/src/calendar_store.rs | 13 ++++++------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d0194e6..677f60b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -573,9 +573,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.2.51" +version = "1.2.52" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a0aeaff4ff1a90589618835a598e545176939b97874f7abc7851caa0618f203" +checksum = "cd4932aefd12402b36c60956a4fe0035421f544799057659ff86f923657aada3" dependencies = [ "find-msvc-tools", "shlex", @@ -1241,9 +1241,9 @@ dependencies = [ [[package]] name = "find-msvc-tools" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645cbb3a84e60b7531617d5ae4e57f7e27308f6445f5abf653209ea76dec8dff" +checksum = "f449e6c6c08c865631d4890cfacf252b3d396c9bcc83adb6623cdb02a8336c41" [[package]] name = "flume" @@ -1771,7 +1771,7 @@ dependencies = [ [[package]] name = "ical" version = "0.11.0" -source = "git+https://github.com/lennart-k/ical-rs?branch=dev#a64b2f6b2920c238f0aee6dd02bafcda5ca76040" +source = "git+https://github.com/lennart-k/ical-rs?branch=dev#64c342e7258ba445dc91b47cd8e20e0ac8ffc417" dependencies = [ "chrono", "chrono-tz", diff --git a/crates/store_sqlite/src/calendar_store.rs b/crates/store_sqlite/src/calendar_store.rs index c0ee83e..d0bba92 100644 --- a/crates/store_sqlite/src/calendar_store.rs +++ b/crates/store_sqlite/src/calendar_store.rs @@ -467,13 +467,12 @@ impl SqliteCalendarStore { .get_first_occurence() .as_ref() .map(CalDateTime::date_floor); - let last_occurence: Option = todo!(); - // let last_occurence = object - // .get_inner() - // .get_inner() - // .get_last_occurence() - // .as_ref() - // .map(CalDateTime::date_ceil); + let last_occurence = object + .get_inner() + .get_inner() + .get_last_occurence() + .as_ref() + .map(CalDateTime::date_ceil); let etag = object.get_etag(); let object_type = object.get_object_type() as u8;