feedbrowser UI fixes
This commit is contained in:
parent
3f459bc8e7
commit
2c2dd64d5d
|
@ -100,7 +100,7 @@
|
||||||
$result = db_query($link, "SELECT feed_url, subscribers FROM
|
$result = db_query($link, "SELECT feed_url, subscribers FROM
|
||||||
ttrss_feedbrowser_cache WHERE (SELECT COUNT(id) = 0 FROM ttrss_feeds AS tf
|
ttrss_feedbrowser_cache WHERE (SELECT COUNT(id) = 0 FROM ttrss_feeds AS tf
|
||||||
WHERE tf.feed_url = ttrss_feedbrowser_cache.feed_url
|
WHERE tf.feed_url = ttrss_feedbrowser_cache.feed_url
|
||||||
AND owner_uid = '$owner_uid')");
|
AND owner_uid = '$owner_uid') ORDER BY subscribers DESC LIMIT $limit");
|
||||||
|
|
||||||
print "<br/>";
|
print "<br/>";
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,8 @@
|
||||||
|
|
||||||
db_query($link, "DELETE FROM ttrss_feedbrowser_cache");
|
db_query($link, "DELETE FROM ttrss_feedbrowser_cache");
|
||||||
|
|
||||||
|
$count = 0;
|
||||||
|
|
||||||
while ($line = db_fetch_assoc($result)) {
|
while ($line = db_fetch_assoc($result)) {
|
||||||
$subscribers = db_escape_string($line["subscribers"]);
|
$subscribers = db_escape_string($line["subscribers"]);
|
||||||
$feed_url = db_escape_string($line["feed_url"]);
|
$feed_url = db_escape_string($line["feed_url"]);
|
||||||
|
@ -55,10 +57,13 @@
|
||||||
db_query($link, "INSERT INTO ttrss_feedbrowser_cache
|
db_query($link, "INSERT INTO ttrss_feedbrowser_cache
|
||||||
(feed_url, subscribers) VALUES ('$feed_url', '$subscribers')");
|
(feed_url, subscribers) VALUES ('$feed_url', '$subscribers')");
|
||||||
|
|
||||||
|
++$count;
|
||||||
}
|
}
|
||||||
|
|
||||||
db_query($link, "COMMIT");
|
db_query($link, "COMMIT");
|
||||||
|
|
||||||
|
print "Finished, $count feeds processed.\n";
|
||||||
|
|
||||||
db_close($link);
|
db_close($link);
|
||||||
|
|
||||||
unlink(LOCK_DIRECTORY . "/$lock_filename");
|
unlink(LOCK_DIRECTORY . "/$lock_filename");
|
||||||
|
|
Loading…
Reference in New Issue