{% endfor %}
diff --git a/app/uploads/The_Moral_Of_The_Xerox.pdf b/app/uploads/The_Moral_Of_The_Xerox.pdf
new file mode 100644
index 0000000..e9c246e
Binary files /dev/null and b/app/uploads/The_Moral_Of_The_Xerox.pdf differ
diff --git a/app/views.py b/app/views.py
index d4359af..4ac30f8 100755
--- a/app/views.py
+++ b/app/views.py
@@ -127,10 +127,11 @@ def add_book():
file.save(fullpath)
cover = get_cover(fullpath, name)
title = user_form.title.data # You could also have used request.form['name']
- author = user_form.author.data # You could also have used request.form['email']
+ author = user_form.author.data # You could also have used
+ tag = user_form.tag.data
print(author)
print(len(author))
- book = Book(title, filename, cover, file_extension)
+ book = Book(title, filename, cover, file_extension, tag)
db.session.add(book)
db.session.commit()
book = Book.query.filter_by(title=title).first()
@@ -138,7 +139,6 @@ def add_book():
this_author = Author(this_author.get('author_name'))
book.author.append(this_author)
db.session.commit()
- #author = "hallo"
# save user to database