diff --git a/cps/__init__.py b/cps/__init__.py index 81690fdb..e3f73731 100644 --- a/cps/__init__.py +++ b/cps/__init__.py @@ -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) diff --git a/cps/ub.py b/cps/ub.py index ed43695d..87af1e89 100644 --- a/cps/ub.py +++ b/cps/ub.py @@ -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 diff --git a/test/Calibre-Web TestSummary.html b/test/Calibre-Web TestSummary.html old mode 100755 new mode 100644 index 67599b8a..9ca833ea --- a/test/Calibre-Web TestSummary.html +++ b/test/Calibre-Web TestSummary.html @@ -36,17 +36,17 @@
-

Start Time: 2020-04-25 21:22:13

+

Start Time: 2020-04-30 19:37:08

-

Stop Time: 2020-04-25 22:12:24

+

Stop Time: 2020-04-30 20:29:32

-

Duration: 42:25 min

+

Duration: 44:26 min

@@ -100,28 +100,19 @@ test_anonymous.test_anonymous - 11 - 11 + 12 + 12 0 0 0 - Detail + Detail - -
test_check_locale_guest
- - PASS - - - - -
test_guest_about
@@ -130,7 +121,7 @@ - +
test_guest_change_visibility_category
@@ -139,6 +130,15 @@ + + +
test_guest_change_visibility_format
+ + PASS + + + +
test_guest_change_visibility_hot
@@ -177,7 +177,7 @@ -
test_guest_change_visibility_series
+
test_guest_change_visibility_rating
PASS @@ -186,7 +186,7 @@ -
test_guest_random_books_available
+
test_guest_change_visibility_series
PASS @@ -195,7 +195,7 @@ -
test_guest_visibility_read
+
test_guest_random_books_available
PASS @@ -203,6 +203,15 @@ + +
test_guest_restricted_settings_visibility
+ + PASS + + + + +
test_guest_visibility_sidebar
@@ -842,14 +851,14 @@ - test_helper.calibre_helper - 13 - 13 + test_goodreads.test_goodreads + 3 + 3 0 0 0 - Detail + Detail @@ -857,7 +866,7 @@ -
test_author_sort
+
test_author_page
PASS @@ -866,7 +875,7 @@ -
test_author_sort_comma
+
test_author_page_invalid
PASS @@ -874,6 +883,48 @@ + +
test_kobo_about
+ + PASS + + + + + + + test_helper.calibre_helper + 13 + 13 + 0 + 0 + 0 + + Detail + + + + + + + +
test_author_sort
+ + PASS + + + + + + +
test_author_sort_comma
+ + PASS + + + + +
test_author_sort_junior
@@ -882,7 +933,7 @@ - +
test_author_sort_oneword
@@ -891,7 +942,7 @@ - +
test_author_sort_roman
@@ -900,7 +951,7 @@ - +
test_check_Limit_Length
@@ -909,7 +960,7 @@ - +
test_check_char_replacement
@@ -918,7 +969,7 @@ - +
test_check_chinese_Characters
@@ -927,7 +978,7 @@ - +
test_check_degEUR_replacement
@@ -936,7 +987,7 @@ - +
test_check_doubleS
@@ -945,7 +996,7 @@ - +
test_check_finish_Dot
@@ -954,7 +1005,7 @@ - +
test_check_high23
@@ -963,7 +1014,7 @@ - +
test_check_umlauts
@@ -981,13 +1032,13 @@ 0 0 - Detail + Detail - +
test_kobo_about
@@ -996,7 +1047,7 @@ - +
test_shelves_add_remove_books
@@ -1005,7 +1056,7 @@ - +
test_sync_changed_book
@@ -1014,7 +1065,7 @@ - +
test_sync_invalid
@@ -1023,7 +1074,7 @@ - +
test_sync_reading_state
@@ -1032,7 +1083,7 @@ - +
test_sync_shelf
@@ -1041,7 +1092,7 @@ - +
test_sync_unchanged
@@ -1050,7 +1101,7 @@ - +
test_sync_upload
@@ -1063,18 +1114,18 @@ test_ldap.test_ldap_login 9 - 9 - 0 + 7 + 2 0 0 - Detail + Detail - +
test_LDAP_SSL
@@ -1083,7 +1134,7 @@ - +
test_LDAP_STARTTLS
@@ -1092,7 +1143,7 @@ - +
test_LDAP_fallback_Login
@@ -1101,16 +1152,36 @@ - +
test_LDAP_import
- PASS + +
+ FAIL +
+ + + + - +
test_LDAP_login
@@ -1119,7 +1190,7 @@ - +
test_invalid_LDAP
@@ -1128,7 +1199,7 @@ - +
test_ldap_about
@@ -1137,7 +1208,7 @@ - +
test_ldap_authentication
@@ -1146,11 +1217,31 @@ - +
test_ldap_opds_download_book
- PASS + +
+ FAIL +
+ + + + @@ -1164,13 +1255,13 @@ 0 1 - Detail + Detail - +
test_debug_log
@@ -1179,7 +1270,7 @@ - +
test_failed_login
@@ -1188,19 +1279,19 @@ - +
test_failed_register
- SKIP + SKIP
-