Fix from tests

pull/1346/head
OzzieIsaacs 5 years ago
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))
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

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save