Skip to content

Commit

Permalink
fix(attributes): fix parse averageRating
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed May 31, 2017
1 parent f4c72ae commit d948178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = (robot) ->
status = "Finished Airing"
else
status = "Currently Airing"
averageRating = result.attributes.averageRating.toFixed(2)
averageRating = result.attributes.averageRating
text = "#{result.attributes.canonicalTitle}\n"
text += "#{result.attributes.synopsis}\n"
text += "Average Rating: :star2: #{averageRating}\n"
Expand Down

0 comments on commit d948178

Please sign in to comment.