Fix from tests

This commit is contained in:
OzzieIsaacs 2020-04-30 20:58:01 +02:00
parent b160a8de0b
commit fb8b6310d5
3 changed files with 395 additions and 216 deletions

View File

@ -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)

View File

@ -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

File diff suppressed because it is too large Load Diff