fixed a bug which didn't show correct entires on the home page

This commit is contained in:
Suraj Patil 2016-05-14 19:54:17 +05:30
parent eeab05f73b
commit 53f720ba34
1 changed files with 1 additions and 1 deletions

View File

@ -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)