Merge pull request #37 from mokaddem/quick-fix

fix: register tags from attributes
pull/39/head v1.0
Sami Mokaddem 2018-02-22 09:48:18 +01:00 committed by GitHub
commit 07a66403d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ def handler_attribute(zmq_name, jsonobj, hasAlreadyBeenContributed=False):
tags = []
for tag in jsonattr.get('Tag', []):
try:
tags.append(tag['Tag'])
tags.append(tag)
except KeyError:
pass
trendings_helper.addTrendingTags(tags, timestamp)