Merge remote-tracking branch 'gitignore/refactor/patch-bookmeta-20170304'

This commit is contained in:
OzzieIsaacs
2017-03-06 19:25:49 +01:00
4 changed files with 37 additions and 44 deletions
+1 -1
View File
@@ -2234,7 +2234,7 @@ def upload():
db.session.add(db_book)
db.session.flush()# flush content get db_book.id avalible
#add comment
upload_comment = Markup(meta.comments).unescape()
upload_comment = Markup(meta.description).unescape()
db_comment = None
if upload_comment != "":
db_comment = db.Comments(upload_comment, db_book.id)