Skip to content

Commit

Permalink
added number of reviews and rating
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Yang authored and Vincent Yang committed Jul 12, 2016
1 parent a31e829 commit 152ff06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yelp_and_chill.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def process_request():
resp = client.search(inp[1], **params)
if resp != None:
bus = resp.businesses[0]
message = '\n' + bus.name + '\nPhone: ' + bus.display_phone + '\nAddress: ' + '\n'.join(bus.location.display_address)
message = '\n' + bus.name + '\nPhone: ' + bus.display_phone + '\nAddress: ' + '\n'.join(bus.location.display_address) + '\n' + str(bus.rating) + '/5 over ' + str(bus.review_count) + ' reviews'
else:
message = "Incomplete request; more information needed."
except Exception as e:
Expand Down

0 comments on commit 152ff06

Please sign in to comment.