mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-11-22 10:54:57 +00:00
Update to latest Trilium DB schema
This commit is contained in:
parent
9e63401a81
commit
6a07268510
@ -304,6 +304,7 @@ async fn task_alerts_soon() -> Result<(), Error> {
|
|||||||
"todoTime" => todo_time = Some(attribute.value.as_str().unwrap().to_owned()),
|
"todoTime" => todo_time = Some(attribute.value.as_str().unwrap().to_owned()),
|
||||||
"doneDate" => continue 'task,
|
"doneDate" => continue 'task,
|
||||||
"reminder" => is_reminder = true,
|
"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)]
|
#[allow(non_snake_case)]
|
||||||
struct Task {
|
struct Task {
|
||||||
attributes: Vec<Attribute>,
|
attributes: Vec<Attribute>,
|
||||||
contentLength: usize,
|
//contentLength: usize,
|
||||||
dateCreated: DateTime<FixedOffset>,
|
dateCreated: DateTime<FixedOffset>,
|
||||||
dateModified: DateTime<FixedOffset>,
|
dateModified: DateTime<FixedOffset>,
|
||||||
deleteId: Option<serde_json::Value>,
|
deleteId: Option<serde_json::Value>,
|
||||||
|
Loading…
Reference in New Issue
Block a user