From 53f720ba34d1ad5d86ab8431dd0abdde5a5e53ee Mon Sep 17 00:00:00 2001 From: Suraj Patil Date: Sat, 14 May 2016 19:54:17 +0530 Subject: [PATCH] fixed a bug which didn't show correct entires on the home page --- db/tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/tasks.go b/db/tasks.go index 8aa0a4d..a0e5a44 100644 --- a/db/tasks.go +++ b/db/tasks.go @@ -100,7 +100,7 @@ func GetTasks(username, status, category string) (types.Context, error) { rows = database.query(getTaskSQL, username) } else { status = category - getTaskSQL = basicSQL + " and name = ? and s.status!='DELETED' order by priority desc, created_date asc, finish_date asc" + getTaskSQL = basicSQL + " and name = ? and s.status='PENDING' order by priority desc, created_date asc, finish_date asc" rows, err = database.db.Query(getTaskSQL, username, category) log.Print(getTaskSQL)