Commit 77103b1e authored by Francesca Sargent 's avatar Francesca Sargent
Browse files

Syntax error

parent 3457c7bf
......@@ -94,13 +94,13 @@ def poststuff(type):
if current_user.can(Permission.WRITE_ARTICLES) and \
form.validate_on_submit():
cuisines = Cuisine(name=form.methods.data, timestamp='now', author=current_user._get_current_object())]
cuisines = [Cuisine(name=form.methods.data, timestamp='now', author=current_user._get_current_object())]
method = Method(
name=form.name.data,
description=form.description.data,
method_text=form.method_text.data,
cuisines = cuisines,
cuisines=cuisines,
author=current_user._get_current_object())
db.session.add(method)
db.session.flush()
......@@ -307,7 +307,7 @@ def editmethod(id):
form = MethodForm()
if form.validate_on_submit():
cuisines = Cuisine(name=form.methods.data, timestamp='now', author=current_user._get_current_object())]
cuisines = [Cuisine(name=form.methods.data, timestamp='now', author=current_user._get_current_object())]
method.name = form.name.data
method.description = form.description.data
......
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