feat: Update task query in Cron class to include additional status in filtering

This commit is contained in:
2025-04-15 23:44:25 +02:00
parent bff7cb8983
commit 2ab23238cb
2 changed files with 13 additions and 13 deletions

View File

@@ -95,8 +95,8 @@
},
"class.Tasks.php": {
"type": "-",
"size": 16189,
"lmtime": 1744485846921,
"size": 16360,
"lmtime": 1744581157874,
"modified": false
},
"class.Users.php": {
@@ -139,8 +139,8 @@
},
"class.Tasks.php": {
"type": "-",
"size": 18467,
"lmtime": 1744570592304,
"size": 18757,
"lmtime": 1744582081660,
"modified": false
},
"class.Users.php": {
@@ -191,20 +191,20 @@
"layout": {
"style.css": {
"type": "-",
"size": 22359,
"lmtime": 1744321764868,
"size": 22469,
"lmtime": 1744580016978,
"modified": false
},
"style.css.map": {
"type": "-",
"size": 39045,
"lmtime": 1744321764868,
"size": 39280,
"lmtime": 1744580016978,
"modified": false
},
"style.scss": {
"type": "-",
"size": 27172,
"lmtime": 1744321764492,
"size": 27332,
"lmtime": 1744580016556,
"modified": false
}
},
@@ -374,8 +374,8 @@
},
"main_view.php": {
"type": "-",
"size": 31736,
"lmtime": 1744485597660,
"size": 31767,
"lmtime": 1744581620678,
"modified": false
},
"task_edit.php": {

View File

@@ -11,7 +11,7 @@ class Cron
. 'FROM '
. 'tasks AS t '
. 'WHERE '
. 'recursively = 1 AND deleted = 0 AND ( status = 1 OR status = 2 ) AND date_end IS NOT NULL AND date_end < \'' . date( 'Y-m-d', strtotime( '+366 days', time() ) ) . '\' '
. 'recursively = 1 AND deleted = 0 AND ( status = 1 OR status = 2 OR status = 3 ) AND date_end IS NOT NULL AND date_end < \'' . date( 'Y-m-d', strtotime( '+366 days', time() ) ) . '\' '
. 'HAVING quantity = 0 ORDER BY date_end ASC' ) -> fetchAll( \PDO::FETCH_ASSOC );
if ( is_array( $results ) and count( $results ) )
{