diff --git a/cps/search.py b/cps/search.py index 8cdb9b4a..29dda16d 100644 --- a/cps/search.py +++ b/cps/search.py @@ -265,7 +265,7 @@ def render_adv_search_results(term, offset=None, order=None, limit=None): pub_end = term.get("publishend") rating_low = term.get("ratinghigh") rating_high = term.get("ratinglow") - description = term.get("comment") + description = term.get("comments") read_status = term.get("read_status") if author_name: author_name = strip_whitespaces(author_name).lower().replace(',', '|') diff --git a/cps/static/js/edit_books.js b/cps/static/js/edit_books.js index 46cc238c..54f615fb 100644 --- a/cps/static/js/edit_books.js +++ b/cps/static/js/edit_books.js @@ -3,7 +3,7 @@ */ /* global Bloodhound, language, Modernizr, tinymce, getPath */ -if ($("#comments").length) { +if ($("#comments").length && typeof tinymce !== "undefined") { tinymce.init({ selector: "#comments", plugins: 'code', diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index 3e1f5ada..dcba2316 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
-

Start Time: 2024-08-21 19:35:06

+

Start Time: 2024-10-27 21:36:02

-

Stop Time: 2024-08-22 02:49:49

+

Stop Time: 2024-10-28 04:51:42

-

Duration: 6h 7 min

+

Duration: 6h 8 min

@@ -1235,15 +1235,15 @@ - + TestEditBooks - 37 - 36 - 0 + 38 + 35 0 + 2 1 - Detail + Detail @@ -1276,11 +1276,44 @@ - +
TestEditBooks - test_edit_comments
- PASS + +
+ ERROR +
+ + + + @@ -1312,11 +1345,35 @@ - +
TestEditBooks - test_edit_custom_date
- PASS + +
+ ERROR +
+ + + + @@ -1598,6 +1655,15 @@ + + + +
TestEditBooks - test_xchange
+ + PASS + + + @@ -2087,11 +2153,9 @@
Traceback (most recent call last):
-  File "/home/ozzie/Development/calibre-web-test/test/test_edit_books_metadata.py", line 100, in test_load_metadata
-    self.assertEqual('https://amazon.com/', results[am]['source'])
-AssertionError: 'https://amazon.com/' != 'https://comicvine.gamespot.com/'
-- https://amazon.com/
-+ https://comicvine.gamespot.com/
+ File "/home/ozzie/Development/calibre-web-test/test/test_edit_books_metadata.py", line 128, in test_load_metadata + self.assertEqual(20, len(results)) +AssertionError: 20 != 10
@@ -2102,11 +2166,11 @@ AssertionError: 'https://amazon.com/' != 'https://comicvine.gamespot - + TestEditBooksOnGdrive 18 - 17 - 1 + 18 + 0 0 0 @@ -2269,31 +2333,11 @@ AssertionError: 'https://amazon.com/' != 'https://comicvine.gamespot - +
TestEditBooksOnGdrive - test_watch_metadata
- -
- FAIL -
- - - - + PASS @@ -2937,12 +2981,12 @@ AssertionError: 'series' unexpectedly found in {'id': 5, 're - + TestLdapLogin 13 - 13 - 0 + 12 0 + 1 0 Detail @@ -2996,11 +3040,31 @@ AssertionError: 'series' unexpectedly found in {'id': 5, 're - +
TestLdapLogin - test_LDAP_import_memberfield
- PASS + +
+ ERROR +
+ + + + @@ -3926,43 +3990,49 @@ AssertionError: 'series' unexpectedly found in {'id': 5, 're - - TestPipInstall - 3 - 3 + + _ErrorHolder + 1 0 0 + 1 0 - Detail + Detail - + -
TestPipInstall - test_command_start
+
setUpClass (test_pip_install)
- PASS - - - - - - -
TestPipInstall - test_foldername_database_location
+ +
+ ERROR +
+ + + - PASS - - - - - - -
TestPipInstall - test_module_start
- - PASS @@ -4217,12 +4287,12 @@ AssertionError: 'series' unexpectedly found in {'id': 5, 're - + TestShelf 17 - 15 + 16 + 0 0 - 1 1 Detail @@ -4249,44 +4319,11 @@ AssertionError: 'series' unexpectedly found in {'id': 5, 're - +
TestShelf - test_adv_search_shelf
- -
- ERROR -
- - - - + PASS @@ -4461,13 +4498,13 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 TestSplitLibrary - 7 - 7 + 8 + 8 0 0 0 - Detail + Detail @@ -4535,6 +4572,15 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 + + + +
TestSplitLibrary - test_wrong_config_lib
+ + PASS + + + @@ -4585,11 +4631,11 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 - + TestThumbnails 8 - 7 - 0 + 6 + 1 0 1 @@ -4662,11 +4708,31 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 - +
TestThumbnails - test_sideloaded_book
- PASS + +
+ FAIL +
+ + + + @@ -5873,9 +5939,9 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 Total 523 - 511 + 508 2 - 1 + 4 9   @@ -5904,7 +5970,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 Platform - Linux 6.8.0-40-generic #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2 x86_64 x86_64 + Linux 6.8.0-47-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 2 16:16:55 UTC 2 x86_64 x86_64 Basic @@ -5914,12 +5980,6 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 Basic - - advocate - 1.0.0 - Basic - - APScheduler 3.10.4 @@ -5944,6 +6004,12 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 Basic + + cryptography + 43.0.3 + Basic + + Flask 3.0.3 @@ -5976,13 +6042,13 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 Flask-WTF - 1.2.1 + 1.2.2 Basic greenlet - 3.0.3 + 3.1.1 Basic @@ -6004,15 +6070,9 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 Basic - - pyasn1 - 0.6.0 - Basic - - pypdf - 4.2.0 + 5.0.1 Basic @@ -6024,7 +6084,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 pytz - 2024.1 + 2024.2 Basic @@ -6042,7 +6102,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 SQLAlchemy - 2.0.32 + 2.0.36 Basic @@ -6066,13 +6126,13 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 Werkzeug - 3.0.3 + 3.0.6 Basic google-api-python-client - 2.142.0 + 2.149.0 TestBackupMetadataGdrive @@ -6102,7 +6162,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 google-api-python-client - 2.142.0 + 2.149.0 TestCliGdrivedb @@ -6132,7 +6192,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 google-api-python-client - 2.142.0 + 2.149.0 TestEbookConvertCalibreGDrive @@ -6162,7 +6222,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 google-api-python-client - 2.142.0 + 2.149.0 TestEbookConvertGDriveKepubify @@ -6210,7 +6270,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 google-api-python-client - 2.142.0 + 2.149.0 TestEditAuthorsGdrive @@ -6246,7 +6306,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 google-api-python-client - 2.142.0 + 2.149.0 TestEditBooksOnGdrive @@ -6288,7 +6348,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 google-api-python-client - 2.142.0 + 2.149.0 TestEmbedMetadataGdrive @@ -6318,7 +6378,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 google-api-python-client - 2.142.0 + 2.149.0 TestSetupGdrive @@ -6354,7 +6414,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16 python-Levenshtein - 0.25.1 + 0.26.1 TestGoodreads @@ -6414,7 +6474,7 @@ dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16