Reuse original code logic.

iteration loop dc:*  add dc:language

removal of bookmeta[‘comments’] , reusing bootmeta[‘description’]
This commit is contained in:
林檎
2017-03-04 15:37:30 +08:00
parent 8c7ba2ccdf
commit 29f21480ab
4 changed files with 21 additions and 24 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)