show late jobs to a day
This commit is contained in:
@@ -899,7 +899,7 @@ long RecoCheckActiveTask( int itm_count, CVars in, CVars &out ){
|
|||||||
try {
|
try {
|
||||||
int ic = itm_count;
|
int ic = itm_count;
|
||||||
long member_id = REQ_LONG(in, "member_id", 1, -1);
|
long member_id = REQ_LONG(in, "member_id", 1, -1);
|
||||||
res = pgsql_query("SELECT * FROM members_jobs_contract WHERE client_id = %lu AND status =1 AND delivery_date < now() ",member_id);
|
res = pgsql_query("SELECT * FROM members_jobs_contract WHERE client_id = %lu AND status =1 AND delivery_dateAND delivery_date > ( now() - interval '1440 minutes' ) ",member_id);
|
||||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||||
|
|
||||||
snprintf(vname, sizeof (vname), "title_%05d", ic);
|
snprintf(vname, sizeof (vname), "title_%05d", ic);
|
||||||
|
|||||||
Reference in New Issue
Block a user