Abstract api server feeds

This commit is contained in:
2019-08-24 08:49:11 +00:00
parent 82074eb8aa
commit d341d4422f
5 changed files with 55 additions and 31 deletions

View File

@@ -54,7 +54,6 @@ def story(ref):
s['date'] = r.get('created_at_i', 0)
s['title'] = r.get('title', '')
s['link'] = SITE_LINK(ref)
s['source'] = 'hackernews'
s['url'] = r.get('url', '')
s['comments'] = [comment(i) for i in r['children']]
s['num_comments'] = comment_count(s) - 1