From a03368c2c0295c4a4fd64afc1ea684a9bfce80e4 Mon Sep 17 00:00:00 2001 From: Joan Lledó Date: Sat, 16 Sep 2023 11:40:29 +0200 Subject: Rename get_list_by_name --- src/database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/database.rs b/src/database.rs index f422d23..4553460 100644 --- a/src/database.rs +++ b/src/database.rs @@ -349,7 +349,7 @@ pub fn get_list_by_id(id_list: Vec) -> Result, rusqlite::Error> { Ok(tasks_vec) } -pub fn get_list_by_name_or_tag(task_name: String) -> Result, rusqlite::Error> { +pub fn get_list_by_name(task_name: String) -> Result, rusqlite::Error> { let conn = Connection::open(get_directory())?; let mut tasks_vec: Vec = Vec::new(); let name_param = format!("%{}%", task_name); -- cgit 1.4.1