Commit 6e7ff84d authored by colmoneill's avatar colmoneill

removes debug print statements and migrates urllib.requests to python3

parent bb13e0d4
......@@ -9,6 +9,7 @@ from flask_security import Security, MongoEngineUserDatastore, UserMixin, RoleMi
from flask_mail import Mail
from flask_security.forms import RegisterForm, StringField
from wtforms.validators import DataRequired
import urllib.request as ur
import os
import glob
import copy
......@@ -185,9 +186,9 @@ def contact():
@app.route("/event")
def event():
eventbrite_json = urllib.urlopen("https://www.eventbriteapi.com/v3/events/search/?q=jazz&token=AYO4PV2UJHXEBOLGXG74")
eventbrite_json = ur.urlopen("https://www.eventbriteapi.com/v3/events/search/?q=jazz&token=AYO4PV2UJHXEBOLGXG74")
events = json.loads(eventbrite_json.read().decode())
print events[1]
print(events)
return render_template("event.html" ,events = events )
@app.errorhandler(404)
......
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