mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 09:30:31 +00:00
Fix from tests
This commit is contained in:
parent
b160a8de0b
commit
fb8b6310d5
@ -95,10 +95,7 @@ def create_app():
|
||||
log.info('Starting Calibre Web...')
|
||||
Principal(app)
|
||||
lm.init_app(app)
|
||||
if os.environ.get('FLASK_DEBUG'):
|
||||
app.secret_key = os.getenv('SECRET_KEY', 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT')
|
||||
else:
|
||||
app.secret_key = os.getenv('SECRET_KEY', os.urandom(32))
|
||||
app.secret_key = os.getenv('SECRET_KEY', 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT')
|
||||
|
||||
web_server.init_app(app, config)
|
||||
db.setup_db(config)
|
||||
|
@ -106,7 +106,7 @@ def get_sidebar_config(kwargs=None):
|
||||
sidebar.append(
|
||||
{"glyph": "glyphicon-trash", "text": _('Archived Books'), "link": 'web.books_list', "id": "archived",
|
||||
"visibility": constants.SIDEBAR_ARCHIVED, 'public': (not g.user.is_anonymous), "page": "archived",
|
||||
"show_text": _('Show archived books'), "config_show": True})
|
||||
"show_text": _('Show archived books'), "config_show": content})
|
||||
return sidebar
|
||||
|
||||
|
||||
|
604
test/Calibre-Web TestSummary.html
Executable file → Normal file
604
test/Calibre-Web TestSummary.html
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user