WTF?
This commit is contained in:
parent
2fb50e55d9
commit
dd849f4b72
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ def new():
|
||||||
else:
|
else:
|
||||||
title = request.form['title']
|
title = request.form['title']
|
||||||
body = request.form['body']
|
body = request.form['body']
|
||||||
if body:
|
if not body:
|
||||||
flash(u'Error: you have to enter a snippet')
|
flash(u'Error: you have to enter a snippet')
|
||||||
else:
|
else:
|
||||||
category = Category.query.get(category_id)
|
category = Category.query.get(category_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue