From c472f00445a91331e396511229f469de70302588 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sat, 17 May 2025 19:08:12 +0000 Subject: Get rid of 'Db::past_comparison_qpart()'. With MySQL support dropped this function is just an unnecessary layer of abstraction. --- update.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'update.php') diff --git a/update.php b/update.php index dfac5ab4c..9df6a0abe 100755 --- a/update.php +++ b/update.php @@ -33,8 +33,6 @@ } function cleanup_tags(int $days = 14, int $limit = 1000): int { - $interval_query = Db::past_comparison_qpart('e.date_updated', '<', $days, 'day'); - $tags_deleted = 0; $limit_part = 500; @@ -45,7 +43,7 @@ ->join('ttrss_user_entries', ['ue.int_id', '=', 't.post_int_id'], 'ue') ->join('ttrss_entries', ['e.id', '=', 'ue.ref_id'], 'e') ->where_not_equal('ue.tag_cache', '') - ->where_raw($interval_query) + ->where_raw("e.date_updated < NOW() - INTERVAL '$days day'") ->limit($limit_part) ->find_many(); -- cgit v1.2.3-54-g00ecf