Very small code cleanup.

This commit is contained in:
Hartmut Goebel
2019-03-29 23:03:31 +01:00
parent 8886fd5d2d
commit 0b13bbbabe

View File

@ -74,8 +74,8 @@ def get_feed(feed_url, last_update):
def get_entry(entry):
hashtags = []
for tag in entry.get('tags', []):
for t in tag['term'].split(' '):
hashtags.append('#{}'.format(t))
for t in tag['term'].split():
hashtags.append('#' + t)
summary = entry.get('summary', '')
return {
'url': entry.id,