Connect multiword terms with underscore instead of splitting the words into separate hashtags to fix #17
This commit is contained in:
@ -65,7 +65,7 @@ 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(' '):
|
t = tag['term'].replace(' ', '_')
|
||||||
hashtags.append('#{}'.format(t))
|
hashtags.append('#{}'.format(t))
|
||||||
return {
|
return {
|
||||||
'url': entry.id,
|
'url': entry.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user