fix mistake.
This commit is contained in:
parent
244d416f6e
commit
736cdc8576
|
@ -17,10 +17,10 @@ INVALID_DOMAINS = ['youtube.com', 'bloomberg.com', 'wsj.com']
|
||||||
TWO_DAYS = 60*60*24*2
|
TWO_DAYS = 60*60*24*2
|
||||||
|
|
||||||
substacks = {}
|
substacks = {}
|
||||||
for key, value in settings.SUBSTACK.values():
|
for key, value in settings.SUBSTACK.items():
|
||||||
substacks[key] = substack.Publication(value['url'])
|
substacks[key] = substack.Publication(value['url'])
|
||||||
sitemaps = {}
|
sitemaps = {}
|
||||||
for key, value in settings.SITEMAP.values():
|
for key, value in settings.SITEMAP.items():
|
||||||
sitemaps[key] = sitemap.Sitemap(value['url'])
|
sitemaps[key] = sitemap.Sitemap(value['url'])
|
||||||
|
|
||||||
def list():
|
def list():
|
||||||
|
@ -37,11 +37,11 @@ def list():
|
||||||
if settings.NUM_SUBSTACK:
|
if settings.NUM_SUBSTACK:
|
||||||
feed += [(x, 'substack') for x in substack.top.feed()[:settings.NUM_SUBSTACK]]
|
feed += [(x, 'substack') for x in substack.top.feed()[:settings.NUM_SUBSTACK]]
|
||||||
|
|
||||||
for key, publication in substacks.values():
|
for key, publication in substacks.items():
|
||||||
count = settings.SUBSTACK[key].count
|
count = settings.SUBSTACK[key].count
|
||||||
feed += [(x, key) for x in publication.feed()[:count]]
|
feed += [(x, key) for x in publication.feed()[:count]]
|
||||||
|
|
||||||
for key, sites in sitemaps.values():
|
for key, sites in sitemaps.items():
|
||||||
count = settings.SITEMAP[key].count
|
count = settings.SITEMAP[key].count
|
||||||
feed += [(x, key) for x in sites.feed()[:count]]
|
feed += [(x, key) for x in sites.feed()[:count]]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user