From 866b5602ef2e97aad0fb44d772baa9f980e7ed58 Mon Sep 17 00:00:00 2001 From: Waldo Jaquith Date: Thu, 11 Jan 2024 15:31:26 -0500 Subject: [PATCH] Only check that bills are advancing every 24 hours The bulk data is only updated every 24 hours, frustratingly. --- cron/checks.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cron/checks.php b/cron/checks.php index 2a3cbc5..9fb74d3 100644 --- a/cron/checks.php +++ b/cron/checks.php @@ -48,14 +48,14 @@ { $sql = 'SELECT * FROM `bills_status` - WHERE date_created > NOW() - INTERVAL 3 HOUR + WHERE date_created > NOW() - INTERVAL 24 HOUR ORDER BY date_created DESC'; $result = mysql_query($sql); if (mysql_num_rows($result) == 0) { - $log->put('Error: No bills have advanced in the past 3 hours, which is unusual. ' - . 'There may be a problem. Make sure that summaries.csv is being updated, and ' - . 'that data is being loaded correctly.', 6); + $log->put('Error: No bills have advanced in the past 24 hours. Bill histories are ' + . 'not being updated. Make sure that history.csv is being updated, and that ' + . 'data is being loaded correctly.', 6); } } }