Commit ab82c567 by swdanielli

Merge pull request #31 from pmitros/danielli/code_review

code clean
parents a206d84f fc3fbeb1
......@@ -362,8 +362,6 @@ class RecommenderXBlock(XBlock):
# Return new vote
result['newVotes'] = (self.recommendations[resource_id]['upvotes'] -
self.recommendations[resource_id]['downvotes'])
if 'newVotes' in result:
tracker.emit(data['event'], result)
return result
......@@ -522,7 +520,7 @@ class RecommenderXBlock(XBlock):
"""
resource_id = stem_url(data['id'])
if resource_id not in self.recommendations:
msg = 'The selected resource is not existing'
msg = 'The selected resource does not exist'
self.error_handler(msg, 'edit_resource', resource_id)
result = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment