From 63f246479d1262731fa6f872145cda4fb4bd147f Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 28 Jun 2023 10:38:36 -0400 Subject: [PATCH] Removed deleted jobs --- wrenchboard/src/shared_tool/account_mngt.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrenchboard/src/shared_tool/account_mngt.cc b/wrenchboard/src/shared_tool/account_mngt.cc index ad919a6d..e6dbfb5e 100644 --- a/wrenchboard/src/shared_tool/account_mngt.cc +++ b/wrenchboard/src/shared_tool/account_mngt.cc @@ -440,7 +440,7 @@ long WrenchReturnJobList(CVars in, CVars &out) { " LEFT JOIN currency c ON c.country=j.country " " WHERE m.status = 1 AND m.client_id=0 " " AND m.expire IS NOT NULL " - " AND m.public_view = 1 AND m.expire> now() " + " AND m.public_view = 1 AND m.expire> now() AND j.status = 1 " " ORDER BY m.expire DESC LIMIT %lu", in["limit"].Long()); if (res != NULL && pgsql_num_rows(res) > 0) {