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
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_edit_books.py", line 499, in test_edit_comments + self.assertEqual(len(self.adv_search({'comments': u'mirä 人'})), 1) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 2173, in adv_search + ele = self.driver.find_element(By.XPATH, + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 830, in find_element + return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute + self.error_handler.check_response(response) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response + raise exception_class(message, screen, stacktrace) +selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //input[@value = 'mirä 人' and starts-with(@id, 'comments') ]/.. +Stacktrace: +RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 +WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5 +NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:511:5 +dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_edit_books.py", line 672, in test_edit_custom_date + self.assertEqual(len(self.adv_search({u'custom_column_2_start': u'16/7/2015'})), 0) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 2149, in adv_search + self.select_date_with_editor(key, key + '_delete', + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1695, in select_date_with_editor + month_year = cls.check_element_on_page((By.CLASS_NAME, 'datepicker-switch')).text.split(' ') +AttributeError: 'bool' object has no attribute 'text'+
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
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_edit_ebooks_gdrive.py", line 976, in test_watch_metadata - self.assertNotIn('series', book) -AssertionError: 'series' unexpectedly found in {'id': 5, 'reader': [], 'title': 'testbook', 'author': ['John Döe'], 'rating': 0, 'languages': ['English'], 'identifier': [], 'cover': '/cover/5/og?c=1724266889', 'tag': [], 'publisher': ['Randomhäus'], 'pubdate': 'Jan 19, 2017', 'comment': 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit.Aenean commodo ligula eget dolor.Aenean massa.Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.Nulla consequat massa quis enim.Donec pede justo, fringilla vel, aliquet nec, vulputate', 'add_shelf': [], 'del_shelf': [], 'edit_enable': True, 'kindle': None, 'kindlebtn': None, 'download': ['EPUB\n (6.7 kB)'], 'read': False, 'archived': False, 'series_all': 'Book 1 of test', 'series_index': '1', 'series': 'test', 'cust_columns': []}-
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ldap.py", line 330, in test_LDAP_import_memberfield + self.assertEqual(User2rights['email'], ' no_user@thata.org') +TypeError: 'bool' object is not subscriptable+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_pip_install.py", line 39, in setUpClass + make_release.main(args) + File "/home/ozzie/Development/calibre-web-test/build_release/make_release.py", line 454, in main + update_requirements() + File "/home/ozzie/Development/calibre-web-test/build_release/make_release.py", line 92, in update_requirements + with open(os.path.join(FILEPATH, "pyproject.toml"), 'r') as fp: +FileNotFoundError: [Errno 2] No such file or directory: '/home/ozzie/Development/calibre-web/pyproject.toml'+
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_shelf.py", line 562, in test_adv_search_shelf - self.assertEqual(len(self.adv_search({u'include_shelf': u'Search', 'book_title': 'book'})), 2) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 2173, in adv_search - ele = self.driver.find_element(By.XPATH, - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 830, in find_element - return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute - self.error_handler.check_response(response) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response - raise exception_class(message, screen, stacktrace) -selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //input[@value = 'book' and starts-with(@id, 'book_title') ]/.. -Stacktrace: -RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 -WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5 -NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:511:5 -dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16-
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_thumbnails.py", line 317, in test_sideloaded_book + self.assertAlmostEqual(diff(BytesIO(list_cover), BytesIO(old_list_cover), delete_diff_file=True), 0.0, +AssertionError: 0.0037533645451876575 != 0.0 within 0.0001 delta (0.0037533645451876575 difference)+