about summary refs log tree commit diff
path: root/src/database.rs
diff options
context:
space:
mode:
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),
     )