Skip to content

Commit

Permalink
add workshop placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
Seanny123 committed Jul 19, 2020
1 parent 4638e9e commit d5c3919
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def home():
# 💡 renders an html page with url parameters, if any
# 🆘 1. We need to show the correct homepage! Change start.html to homepage.html
return render_template("homepage.html", city=request.args.get("city", ""))
return render_template("start.html", city=request.args.get("city", ""))


# API Endpoints
Expand Down
4 changes: 2 additions & 2 deletions yelp.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
###

# 1. 🆘✨ we want to get events for the city name a user types in. Replace the placeholder variable with city 🏙 as a parameter!
def get_businesses( city ):
def get_businesses( FIXME ):

# 2. 🆘✨ use the dotenv file to find the correct variable for Yelp!
# We need to use our key! Look in the .env file for the Yelp key name
Expand All @@ -24,4 +24,4 @@ def get_businesses( city ):
# 3. 🆘✨we want to get a JSON response from Yelp.
# They keep the info we need in the response_body.events.
# 💡returns a JSON array of events in a city
return json.loads(request.text)["businesses"]
return json.loads(request.text)["FIXME"]

0 comments on commit d5c3919

Please sign in to comment.