From c26799fd35715d3de4ad36d70d432c541f1f2136 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 2 Jul 2023 17:24:04 -0400 Subject: [PATCH] fix q --- wrenchboard/src/shared_tool/family_acc.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wrenchboard/src/shared_tool/family_acc.cc b/wrenchboard/src/shared_tool/family_acc.cc index 1da371f4..d780b541 100644 --- a/wrenchboard/src/shared_tool/family_acc.cc +++ b/wrenchboard/src/shared_tool/family_acc.cc @@ -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; }