This commit is contained in:
CHIEFSOFT\ameye
2023-07-02 17:24:04 -04:00
parent fad81fa012
commit c26799fd35
+3 -2
View File
@@ -68,8 +68,8 @@ long WrenchSampleTasks(CVars in, CVars &out){
long limit = REQ_LONG(in, "limit", 1, -1);
out["total_record"] = "0";
res = pgsql_query("SELECT id FROM family_task_suggestion WHERE status=1 ");
out["total_record"] = pgsql_num_rows(res);
// res = pgsql_query("SELECT id FROM family_task_suggestion WHERE status=1 ");
// out["total_record"] = pgsql_num_rows(res);
res = pgsql_query(" SELECT * FROM family_task_suggestion WHERE status = 1 "
" ORDER BY title DESC LIMIT %lu OFFSET %lu", limit, offset);
@@ -111,6 +111,7 @@ long WrenchSampleTasks(CVars in, CVars &out){
}
logfmt(logINFO, "WrenchSampleTasks()");
return ret;
}