removed comments

This commit is contained in:
Martin Vrhovšek 2025-02-02 03:33:50 +01:00
parent cac9af75f2
commit 6dfc454372
2 changed files with 1 additions and 18 deletions

View File

@ -44,7 +44,6 @@ pub(crate) fn insert_task(conn: &Connection, task: TaskColumn) -> Result<i64> {
Ok(conn.last_insert_rowid())
}
// happens if we un/select task or we rename the task
pub(crate) fn update_task(conn: &Connection, task: TaskColumn, change: ChangeType) -> Result<()> {
let (query, params) = match change {
ChangeType::Checked => (

View File

@ -17,20 +17,4 @@ fn main() -> iced::Result {
.theme(Todo::theme)
.window(settings)
.run()
}
/*fn main() {
let path: &Path = Path::new("./todolist-db.db3");
let conn = startup(path);
let t = Task {
checked: true,
value: String::from("JJ"),
};
let c = conn.unwrap();
let r = db::insert_task(t, &c);
println!("{:?}", r);
let rr = db::get_tasks(&c);
let x = c.close();
}*/
}