]> git.wh0rd.org Git - tt-rss.git/commitdiff
daemon: schedule never updated feeds for update
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 7 Feb 2008 03:29:09 +0000 (04:29 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 7 Feb 2008 03:29:09 +0000 (04:29 +0100)
functions.php

index 4af6e3b5492f832e58c279a2ab6ba303a85c77f8..829650b782e1cd8b6dc137acbaa5917aeb840510 100644 (file)
                                ) OR (
                                        ttrss_feeds.update_interval > 0
                                        AND ttrss_feeds.last_updated < NOW() - CAST((ttrss_feeds.update_interval || ' minutes') AS INTERVAL)
-                               ))";
+                               ) OR ttrss_feeds.last_updated IS NULL)";
                } else {
                        $update_limit_qpart = "AND ((
                                        ttrss_feeds.update_interval = 0
                                ) OR (
                                        ttrss_feeds.update_interval > 0
                                        AND ttrss_feeds.last_updated < DATE_SUB(NOW(), INTERVAL ttrss_feeds.update_interval MINUTE)
-                               ))";
+                               ) OR ttrss_feeds.last_updated IS NULL)";
                }
 
                // Test if feed is currently being updated by another process.