diff --git a/wrenchboard/src/shared_tool/jobs.cc b/wrenchboard/src/shared_tool/jobs.cc index 52ca2f9e..5aa19903 100644 --- a/wrenchboard/src/shared_tool/jobs.cc +++ b/wrenchboard/src/shared_tool/jobs.cc @@ -507,7 +507,12 @@ long WrenchUserJobsInterestList(CVars in, CVars &out) { long WrenchJobsInterestStats(CVars in, CVars &out) { long ret = PHP_API_BAD_PARAM; char vname[30]; - out = in; + //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 + out["job_completed"] = "0"; out["job_active"] = "0"; @@ -515,8 +520,13 @@ long WrenchJobsInterestStats(CVars in, CVars &out) { out["job_uncompleted"] = "0"; out["job_rejected"] = "0"; out["job_pending"] = "0"; + out["job_last_date"] = "0000-00-00"; - ret = PHP_CREATED_OK; + + ret = PHP_CREATED_OK; + } catch (bad_parameter) { + out["log_status"] = "Error WrenchJobsInterestStats"; + } return ret; }