Commit 85d322b3 authored by Willard's avatar Willard

Fix invalid syntax, add newline

parent 8bf76673
...@@ -5,4 +5,4 @@ class BaseConfig(object): ...@@ -5,4 +5,4 @@ class BaseConfig(object):
SECRET_KEY = 'canteeneo_key' SECRET_KEY = 'canteeneo_key'
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:therootisdead@localhost/canteeneo' SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:therootisdead@localhost/canteeneo'
SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_TRACK_MODIFICATIONS = False
UPLOAD_FOLDER = os.path.realpath('.\\canteeneo\\static\uploads') UPLOAD_FOLDER = os.path.realpath('.\\canteeneo\\static\uploads')
\ No newline at end of file
...@@ -69,4 +69,4 @@ def delete_dish(stall_id, dish_id): ...@@ -69,4 +69,4 @@ def delete_dish(stall_id, dish_id):
db.session.delete(dish) db.session.delete(dish)
db.session.commit() db.session.commit()
return redirect(url_for('view_stall', stall_id=stall_id)) return redirect(url_for('view_stall', stall_id=stall_id))
\ No newline at end of file
...@@ -69,4 +69,4 @@ def delete_stall(stall_id): ...@@ -69,4 +69,4 @@ def delete_stall(stall_id):
stall = Stall.query.get(stall_id) stall = Stall.query.get(stall_id)
db.session.delete(stall) db.session.delete(stall)
db.session.commit() db.session.commit()
return redirect(url_for('view_stall', stall_id=stall_id) return redirect(url_for('view_stall', stall_id=stall_id))
\ No newline at end of file
...@@ -90,4 +90,4 @@ def flash_form_errors(form): ...@@ -90,4 +90,4 @@ def flash_form_errors(form):
flash(u'Error in the %s field - %s' % (getattr(form, field).label.text, error)) flash(u'Error in the %s field - %s' % (getattr(form, field).label.text, error))
import stall_views import stall_views
import dish_views import dish_views
\ No newline at end of file
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