Very small code cleanup.
This commit is contained in:
@ -74,8 +74,8 @@ def get_feed(feed_url, last_update):
|
|||||||
def get_entry(entry):
|
def get_entry(entry):
|
||||||
hashtags = []
|
hashtags = []
|
||||||
for tag in entry.get('tags', []):
|
for tag in entry.get('tags', []):
|
||||||
for t in tag['term'].split(' '):
|
for t in tag['term'].split():
|
||||||
hashtags.append('#{}'.format(t))
|
hashtags.append('#' + t)
|
||||||
summary = entry.get('summary', '')
|
summary = entry.get('summary', '')
|
||||||
return {
|
return {
|
||||||
'url': entry.id,
|
'url': entry.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user