mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 04:19:59 +00:00
fix for edit page after upload
This commit is contained in:
parent
8d2a865436
commit
2207622bbf
12
config.ini
12
config.ini
@ -1,12 +1,12 @@
|
||||
[General]
|
||||
DB_ROOT =
|
||||
APP_DB_ROOT =
|
||||
MAIN_DIR =
|
||||
LOG_DIR =
|
||||
DB_ROOT = /home/christoph/Calibre-Bibliothek_test
|
||||
APP_DB_ROOT = /home/christoph/computer/calibre-web
|
||||
MAIN_DIR = /home/christoph/computer/calibre-web
|
||||
LOG_DIR = /home/christoph/computer/calibre-web
|
||||
PORT = 8083
|
||||
NEWEST_BOOKS = 60
|
||||
[Advanced]
|
||||
TITLE_REGEX = ^(A|The|An|Der|Die|Das|Den|Ein|Eine|Einen|Dem|Des|Einem|Eines)\s+
|
||||
DEVELOPMENT = 0
|
||||
DEVELOPMENT = 1
|
||||
PUBLIC_REG = 0
|
||||
UPLOADING = 0
|
||||
UPLOADING = 1
|
||||
|
@ -896,4 +896,8 @@ def upload():
|
||||
|
||||
db.session.add(db_book)
|
||||
db.session.commit()
|
||||
return render_template('edit_book.html', book=db_book)
|
||||
author_names = []
|
||||
for author in db_book.authors:
|
||||
author_names.append(author.name)
|
||||
|
||||
return render_template('edit_book.html', book=db_book, authors=author_names)
|
||||
|
Loading…
Reference in New Issue
Block a user