about summary refs log tree commit diff
path: root/src/database.rs
diff options
context:
space:
mode:
authorJoan Lledó <jlledom@member.fsf.org>2023-09-16 11:40:29 +0200
committerJoan Lledó <jlledom@member.fsf.org>2023-09-30 13:14:47 +0200
commita03368c2c0295c4a4fd64afc1ea684a9bfce80e4 (patch)
treec6315f173cee59971a05a8d2ab2cc83edf858ac4 /src/database.rs
parent5ff42c0a2d7944fd4bbfb424dd0fa05ced266469 (diff)
downloadFurtherance-a03368c2c0295c4a4fd64afc1ea684a9bfce80e4.tar.zst
Rename get_list_by_name
Diffstat (limited to 'src/database.rs')
-rw-r--r--src/database.rs2
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);