Skip to content

Commit

Permalink
add description to feed
Browse files Browse the repository at this point in the history
  • Loading branch information
drkane committed Sep 21, 2020
1 parent 662ba9a commit 5b92e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftc/feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ def items(self):
return Scrape.objects.filter(status__in=[Scrape.ScrapeStatus.ERRORS, Scrape.ScrapeStatus.FAILED]).order_by("-start_time")[:10]

def item_title(self, item):
return item.spider
return "SCRAPER FAILED: " + item.spider

def item_description(self, item):
return item.log
return "<pre>" + item.log + "</pre>"

def item_pubdate(self, item):
return item.start_time
Expand Down

0 comments on commit 5b92e22

Please sign in to comment.