timeline_days
This commit is contained in:
@@ -566,7 +566,7 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
|
|||||||
long offset = REQ_LONG(in, "offset", 1, -1);
|
long offset = REQ_LONG(in, "offset", 1, -1);
|
||||||
long limit = REQ_LONG(in, "limit", 1, -1);
|
long limit = REQ_LONG(in, "limit", 1, -1);
|
||||||
|
|
||||||
const PGresult *res = pgsql_query("SELECT mm.id AS client_id, mm.uid AS client_uid, "
|
const PGresult *res = pgsql_query("SELECT mm.id AS client_id, mm.uid AS client_uid, j.timeline_days, "
|
||||||
" mm.firstname AS client_name, m.offer_code, m.uid AS offer_uid,j.uid AS job_uid, "
|
" mm.firstname AS client_name, m.offer_code, m.uid AS offer_uid,j.uid AS job_uid, "
|
||||||
" mo.member_id, mm.added::date AS client_added, to_char(mo.added, 'Dy Mon dd, yyyy HH:MI AM') AS sent, "
|
" mo.member_id, mm.added::date AS client_added, to_char(mo.added, 'Dy Mon dd, yyyy HH:MI AM') AS sent, "
|
||||||
" j.title,j.description,m.job_id,to_char( m.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire,j.price AS job_price,mo.uid AS interest_uid ,"
|
" j.title,j.description,m.job_id,to_char( m.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire,j.price AS job_price,mo.uid AS interest_uid ,"
|
||||||
@@ -594,6 +594,9 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
|
|||||||
snprintf(vname, sizeof (vname), "interest_uid_%05d", i);
|
snprintf(vname, sizeof (vname), "interest_uid_%05d", i);
|
||||||
out[vname] = rec["interest_uid"];
|
out[vname] = rec["interest_uid"];
|
||||||
|
|
||||||
|
snprintf(vname, sizeof (vname), "timeline_days_%05d", i);
|
||||||
|
out[vname] = rec["timeline_days"];
|
||||||
|
|
||||||
snprintf(vname, sizeof (vname), "client_id_%05d", i);
|
snprintf(vname, sizeof (vname), "client_id_%05d", i);
|
||||||
out[vname] = rec["client_id"];
|
out[vname] = rec["client_id"];
|
||||||
|
|
||||||
|
|||||||
@@ -361,6 +361,7 @@ class ResultFormatter extends Model
|
|||||||
"job_uid" => $out["job_uid_${key}"],
|
"job_uid" => $out["job_uid_${key}"],
|
||||||
"expire" => $out["expire_${key}"],
|
"expire" => $out["expire_${key}"],
|
||||||
"price" => $out["price_${key}"],
|
"price" => $out["price_${key}"],
|
||||||
|
"timeline_days" => $out["timeline_days_${key}"],
|
||||||
'job_country' => $out["job_country_${key}"],
|
'job_country' => $out["job_country_${key}"],
|
||||||
'currency' => $out["currency_${key}"],
|
'currency' => $out["currency_${key}"],
|
||||||
'currency_code' => $out["currency_code_${key}"],
|
'currency_code' => $out["currency_code_${key}"],
|
||||||
|
|||||||
Reference in New Issue
Block a user