From 6a072685104390c3bad8d7fe4219f1072cd968b9 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu@web.de> Date: Fri, 16 Oct 2020 18:40:49 +0200 Subject: [PATCH] Update to latest Trilium DB schema --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9b079f9..7541602 100644 --- a/src/main.rs +++ b/src/main.rs @@ -304,6 +304,7 @@ async fn task_alerts_soon() -> Result<(), Error> { "todoTime" => todo_time = Some(attribute.value.as_str().unwrap().to_owned()), "doneDate" => continue 'task, "reminder" => is_reminder = true, + "canceled" => if attribute.value.as_str().unwrap() == "true" { continue 'task }, _ => {} } } @@ -356,7 +357,7 @@ async fn notify_owner(time_left: &str, task: Task) -> Result<(), Error> { #[allow(non_snake_case)] struct Task { attributes: Vec, - contentLength: usize, + //contentLength: usize, dateCreated: DateTime, dateModified: DateTime, deleteId: Option,