From 5babad76842f9c58328863bc8b42e9e4e4a133e6 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 12 May 2023 14:42:09 -0400 Subject: [PATCH] formater update --- wrenchboard/src/shared_tool/jobs_manager.cc | 3 ++ www-api/public/svs/user/formarter.php | 39 ++++++++++++++------- 2 files changed, 30 insertions(+), 12 deletions(-) diff --git a/wrenchboard/src/shared_tool/jobs_manager.cc b/wrenchboard/src/shared_tool/jobs_manager.cc index a7cff476..95e958b1 100644 --- a/wrenchboard/src/shared_tool/jobs_manager.cc +++ b/wrenchboard/src/shared_tool/jobs_manager.cc @@ -199,6 +199,9 @@ long WrenchJobManagerList( CVars in, CVars &out){ CVars rec; map_to_cvars(f, rec); + snprintf(vname, sizeof (vname), "id_%05d", i); + out[vname] = rec["id"]; + snprintf(vname, sizeof (vname), "job_id_%05d", i); out[vname] = rec["job_id"]; diff --git a/www-api/public/svs/user/formarter.php b/www-api/public/svs/user/formarter.php index 49b6bfe6..b1c4590d 100755 --- a/www-api/public/svs/user/formarter.php +++ b/www-api/public/svs/user/formarter.php @@ -227,18 +227,33 @@ function processOutJson($in, $out) { for ($i = 0; $i < $total; $i++) { $key = sprintf("%05d", $i); $res["result_list"][] = array( - "title" => $out["title_${key}"], - "description" => $out["description_${key}"], - "id" => $out["id_${key}"], - "job_description" => cleanUpDescription($out["job_description_${key}"]), - "job_detail" => cleanUpDescription($out["job_detail_${key}"]), - "price" => $out["price_${key}"], - "timeline_days" => $out["timeline_days_${key}"], - "contract_id" => $out["contract_id_${key}"], - "job_id" => $out["job_id_${key}"], - "contract" => $out["contract_${key}"], - "status_description" => $out["status_description_${key}"], - "delivery_date" => $out["delivery_date_${key}"] + "title" => $out["title_${key}"], + "description" => $out["description_${key}"], + "id" => $out["id_${key}"], + "job_description" => $out["job_description_${key}"], + "job_detail" => cleanUpDescription($out["job_detail_${key}"]), + "price" => $out["price_${key}"], + "timeline_days" => $out["timeline_days_${key}"], + "contract_id" => $out["contract_id_${key}"], + "job_id" => $out["job_id_${key}"], + "contract" => $out["contract_${key}"], + "status_description" => $out["status_description_${key}"], + "delivery_date" => $out["delivery_date_${key}"], + "offer_uid" => $out["offer_uid_${key}"], + "job_uid" => $out["job_uid_${key}"], + "expire" => $out["expire_${key}"], + "sent" => $out["sent_${key}"], + "offer_code" => $out["offer_code_${key}"], + "job_to" => $out["job_to_${key}"], + "public_view" => $out["public_view_${key}"], + "whishlisted"=> false, + "thumbnil" => 'marketplace-product-1.jpg', + 'isActive' => true, + 'offer_added' => $out["offer_added_${key}"], + 'job_country' => $out["job_country_${key}"], + 'currency' => 'Naira', + 'currency_code' => 'NGN', + 'category' => dummyGetCategory() ); }