updater: prevent duplicate feed ids being scheduled for update
This commit is contained in:
parent
d0eef2a3b0
commit
5929a0c1e4
|
@ -159,7 +159,7 @@
|
||||||
|
|
||||||
// since we have the data cached, we can deal with other feeds with the same url
|
// since we have the data cached, we can deal with other feeds with the same url
|
||||||
|
|
||||||
$tmp_result = db_query($link, "SELECT ttrss_feeds.feed_url,ttrss_feeds.id,last_updated
|
$tmp_result = db_query($link, "SELECT DISTINCT ttrss_feeds.id,last_updated
|
||||||
FROM ttrss_feeds, ttrss_users, ttrss_user_prefs WHERE
|
FROM ttrss_feeds, ttrss_users, ttrss_user_prefs WHERE
|
||||||
ttrss_user_prefs.owner_uid = ttrss_feeds.owner_uid AND
|
ttrss_user_prefs.owner_uid = ttrss_feeds.owner_uid AND
|
||||||
ttrss_users.id = ttrss_user_prefs.owner_uid AND
|
ttrss_users.id = ttrss_user_prefs.owner_uid AND
|
||||||
|
@ -168,7 +168,7 @@
|
||||||
(ttrss_feeds.update_interval > 0 OR
|
(ttrss_feeds.update_interval > 0 OR
|
||||||
ttrss_user_prefs.value != '-1')
|
ttrss_user_prefs.value != '-1')
|
||||||
$login_thresh_qpart
|
$login_thresh_qpart
|
||||||
ORDER BY feed_url $query_limit");
|
ORDER BY ttrss_feeds.id $query_limit");
|
||||||
|
|
||||||
if (db_num_rows($tmp_result) > 0) {
|
if (db_num_rows($tmp_result) > 0) {
|
||||||
while ($tline = db_fetch_assoc($tmp_result)) {
|
while ($tline = db_fetch_assoc($tmp_result)) {
|
||||||
|
|
Loading…
Reference in New Issue