diff options
author | Joan Lledó <jlledom@member.fsf.org> | 2023-09-16 11:40:29 +0200 |
---|---|---|
committer | Joan Lledó <jlledom@member.fsf.org> | 2023-09-30 13:14:47 +0200 |
commit | a03368c2c0295c4a4fd64afc1ea684a9bfce80e4 (patch) | |
tree | c6315f173cee59971a05a8d2ab2cc83edf858ac4 | |
parent | 5ff42c0a2d7944fd4bbfb424dd0fa05ced266469 (diff) | |
download | Furtherance-a03368c2c0295c4a4fd64afc1ea684a9bfce80e4.tar.zst |
Rename get_list_by_name
-rw-r--r-- | src/database.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<i32>) -> Result<Vec<Task>, rusqlite::Error> { Ok(tasks_vec) } -pub fn get_list_by_name_or_tag(task_name: String) -> Result<Vec<Task>, rusqlite::Error> { +pub fn get_list_by_name(task_name: String) -> Result<Vec<Task>, rusqlite::Error> { let conn = Connection::open(get_directory())?; let mut tasks_vec: Vec<Task> = Vec::new(); let name_param = format!("%{}%", task_name); |