Skip to content Skip to sidebar Skip to footer

Flask Route Is Not Calling Yelp Api On Python

So I made this route on my index page that takes the POST from a HTML form and inputs the variable in the API call. I thought the initial problem with the for loop to iterate throu

Solution 1:

Changed this:

def zipsub():
    global gym_df
    if request.method == "POST":
        zip_code = request.form.get('zipsearch')
        #Client ID

and

return render_template('table.html', column_names=gym_df.columns.values, row_data=list(gym_df.values.tolist()), zip=zip)

This fix let me properly call and unpack the API results.

Post a Comment for "Flask Route Is Not Calling Yelp Api On Python"