From 0d74197ba2b48f7948289ae90f591b5b14b5e9ea Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 18 Jul 2024 16:14:09 -0400 Subject: [PATCH] uid --- wrenchboard/src/shared_tool/jobs.cc | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/wrenchboard/src/shared_tool/jobs.cc b/wrenchboard/src/shared_tool/jobs.cc index 238b08ed..b9afc6e4 100644 --- a/wrenchboard/src/shared_tool/jobs.cc +++ b/wrenchboard/src/shared_tool/jobs.cc @@ -508,21 +508,25 @@ long WrenchJobsInterestStats(CVars in, CVars &out) { long ret = PHP_API_BAD_PARAM; char vname[30]; //out = in; - try { - // REQ_STRING(in, "uid", 1, 95, "(.*)"); //uid - // REQ_STRING(in, "interest_uid", 1, 95, "(.*)"); //interest_uid - // REQ_STRING(in, "client_uid", 1, 95, "(.*)"); //client_uid + +try { + out["job_completed"] = "0"; + out["job_active"] = "0"; + out["job_percent_complete"] = "0"; + out["job_uncompleted"] = "0"; + out["job_rejected"] = "0"; + out["job_pending"] = "0"; + out["job_last_date"] = "0000-00-00"; + + REQ_STRING(in, "uid", 1, 95, "(.*)"); //uid + REQ_STRING(in, "interest_uid", 1, 95, "(.*)"); //interest_uid + REQ_STRING(in, "client_uid", 1, 95, "(.*)"); //client_uid - out["job_completed"] = "0"; - out["job_active"] = "0"; - out["job_percent_complete"] = "0"; - out["job_uncompleted"] = "0"; - out["job_rejected"] = "0"; - out["job_pending"] = "0"; - out["job_last_date"] = "0000-00-00"; + //SELECT id as client_id FROM members WHERE uid::text = 'dfc9d601-780f-4d78-839f-422f0928f911'; + ret = PHP_CREATED_OK; } catch (bad_parameter) { out["log_status"] = "Error WrenchJobsInterestStats";