Archived
1
0
Fork 0

formating

This commit is contained in:
Lukas Winkler 2017-06-11 18:48:42 +02:00
parent 0bdcc719ad
commit fd8143618b

View file

@ -7,7 +7,7 @@ from sqlalchemy import text
import config
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = "mysql+pymysql://{user}:{password}@{host}/{db}?unix_socket=/var/run/mysqld/mysqld.sock".format(**config.db)
app.config['SQLALCHEMY_DATABASE_URI'] = "mysql+pymysql://{user}:{password}@{host}/{db}?{settings}".format(**config.db)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlchemy(app)
@ -31,6 +31,7 @@ def handle_invalid_usage(error):
response.status_code = error.code
return response
@app.route('/api/venue/')
def get_venues():
sql = text("SELECT * FROM venues")