timeline_days

This commit is contained in:
CHIEFSOFT\ameye
2024-08-08 08:26:30 -04:00
parent 89098b27ed
commit b4b1862289
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -566,7 +566,7 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
long offset = REQ_LONG(in, "offset", 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, "
" 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 ,"
@@ -594,6 +594,9 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
snprintf(vname, sizeof (vname), "interest_uid_%05d", i);
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);
out[vname] = rec["client_id"];
+1
View File
@@ -361,6 +361,7 @@ class ResultFormatter extends Model
"job_uid" => $out["job_uid_${key}"],
"expire" => $out["expire_${key}"],
"price" => $out["price_${key}"],
"timeline_days" => $out["timeline_days_${key}"],
'job_country' => $out["job_country_${key}"],
'currency' => $out["currency_${key}"],
'currency_code' => $out["currency_code_${key}"],