about summary refs log tree commit diff
path: root/src/database.rs
diff options
context:
space:
mode:
authorRicky Kresslein <ricky@kressle.in>2022-02-20 12:59:46 +0100
committerRicky Kresslein <ricky@kressle.in>2022-02-20 12:59:46 +0100
commit379561117862952d567bfdbf0700b5c7f470a1a8 (patch)
treee8ff9e5081109c87426eb35c5ade0407e4908419 /src/database.rs
parent1f46e93625cff30eaf63258fcabe4ddc0c243136 (diff)
downloadFurtherance-379561117862952d567bfdbf0700b5c7f470a1a8.tar.zst
- Added Preferences
- Added idle notify to preferences
- Bug fix: if user deleted first task none would show
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 70e6043..7612643 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -149,7 +149,7 @@ pub fn check_for_tasks() -> Result<String> {
     let conn = Connection::open(get_directory())?;
 
     conn.query_row(
-        "SELECT task_name FROM tasks WHERE id='1'",
+        "SELECT task_name FROM tasks ORDER BY ROWID ASC LIMIT 1",
         [],
         |row| row.get(0),
     )