Resoures starter
This commit is contained in:
@@ -248,7 +248,7 @@ long WrenchReturnJobOffersList(CVars in, CVars &out) {
|
||||
|
||||
|
||||
|
||||
res = pgsql_query("SELECT mj.id AS job_id, jo.id AS contract_id, jo.added::date,mj.title, jo.offer_code,jo.uid AS offer_uid,jo.expire, "
|
||||
res = pgsql_query("SELECT jo.id AS offer_id, mj.id AS job_id, jo.id AS contract_id, jo.added::date,mj.title, jo.offer_code,jo.uid AS offer_uid,jo.expire, "
|
||||
" jo.public_view, mj.uid AS job_uid, jo.added AS offer_added, mj.description AS description, jo.job_description,mj.price, mj.timeline_days "
|
||||
"FROM members_jobs_offer jo LEFT JOIN members_jobs mj ON mj.id = jo.job_id "
|
||||
"WHERE jo.expire > now() AND jo.status = 1 "
|
||||
@@ -264,6 +264,9 @@ long WrenchReturnJobOffersList(CVars in, CVars &out) {
|
||||
CVars rec;
|
||||
map_to_cvars(f, rec);
|
||||
|
||||
snprintf(vname, sizeof (vname), "offer_id_%05d", i);
|
||||
out[vname] = rec["id"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "title_%05d", i);
|
||||
out[vname] = rec["title"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user