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:
|
||||
title = request.form['title']
|
||||
body = request.form['body']
|
||||
if body:
|
||||
if not body:
|
||||
flash(u'Error: you have to enter a snippet')
|
||||
else:
|
||||
category = Category.query.get(category_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue