mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
New informational message.
This commit is contained in:
parent
86a00f6b5f
commit
bfa01bede2
3 changed files with 18 additions and 13 deletions
|
@ -56,6 +56,8 @@ class OPMLImporter(Importer):
|
|||
if not hasattr(feed, 'title'):
|
||||
setattr(feed, 'title', feed.htmlUrl)
|
||||
feed_address = urlnorm.normalize(feed.xmlUrl)
|
||||
if len(feed_address) > 255:
|
||||
continue
|
||||
feed_link = urlnorm.normalize(feed.htmlUrl)
|
||||
logging.info(' ---> \t%s - %s - %s' % (feed.title, feed_link, feed_address,))
|
||||
feed_data = dict(feed_address=feed_address, feed_link=feed_link, feed_title=feed.title)
|
||||
|
@ -121,6 +123,9 @@ class GoogleReaderImporter(Importer):
|
|||
feed_link = urlnorm.normalize(feed_link)
|
||||
feed_address = urlnorm.normalize(feed_address)
|
||||
|
||||
if len(feed_address) > 255:
|
||||
return folders
|
||||
|
||||
# See if it exists as a duplicate first
|
||||
duplicate_feed = DuplicateFeed.objects.filter(duplicate_address=feed_address)
|
||||
if duplicate_feed:
|
||||
|
|
|
@ -700,7 +700,7 @@ class FeedFetchHistory(models.Model):
|
|||
self.fetch_date,
|
||||
self.status_code,
|
||||
self.message,
|
||||
self.exception[:50]
|
||||
self.exception and self.exception[:50]
|
||||
)
|
||||
|
||||
class PageFetchHistory(models.Model):
|
||||
|
@ -717,7 +717,7 @@ class PageFetchHistory(models.Model):
|
|||
self.fetch_date,
|
||||
self.status_code,
|
||||
self.message,
|
||||
self.exception[:50]
|
||||
self.exception and self.exception[:50]
|
||||
)
|
||||
|
||||
class DuplicateFeed(models.Model):
|
||||
|
|
|
@ -185,6 +185,17 @@
|
|||
</div>
|
||||
</h5>
|
||||
</div>
|
||||
|
||||
<div class="NB-module NB-module-features">
|
||||
<h5 class="NB-module-header">Important information</h5>
|
||||
|
||||
<table class="" cellpadding="0" cellspacing="0">
|
||||
<tr class="NB-module-feature NB-module-feature-new">
|
||||
<td class="NB-module-feature-date">Today, August 25th</td>
|
||||
<td class="NB-module-feature-description">I am aware that approximately 20% of all feeds are failing to fetch and parse. The fix will be coming sometime today or tomorrow.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="NB-module NB-module-features">
|
||||
|
@ -246,17 +257,6 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="NB-module NB-module-features">
|
||||
<h5 class="NB-module-header">Important information</h5>
|
||||
|
||||
<table class="" cellpadding="0" cellspacing="0">
|
||||
<tr class="NB-module-feature NB-module-feature-new">
|
||||
<td class="NB-module-feature-date">Today, 8 - 9am ET</td>
|
||||
<td class="NB-module-feature-description">Our server host, Linode Atlanta, was targeted in a malicious DDoS. NewsBlur was down as a result. Everything's fine now.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue