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) {