Resoures starter

This commit is contained in:
CHIEFSOFT\ameye
2023-05-29 13:03:32 -04:00
parent f7e966d60d
commit db00b3a0e0
5 changed files with 367 additions and 1 deletions
+4 -1
View File
@@ -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"];