Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FoAM
open sauces
Commits
77103b1e
Commit
77103b1e
authored
Jan 21, 2015
by
Francesca Sargent
Browse files
Syntax error
parent
3457c7bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
flask/app/main/views.py
flask/app/main/views.py
+3
-3
No files found.
flask/app/main/views.py
View file @
77103b1e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment