View Single Post
Old 01-03-2025, 09:29 AM   #679
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,302
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by Comfy.n View Post
I got this error today but it happened on version 1.77, not the latest one.

Spoiler:
Traceback (most recent call last):
File "calibre_plugins.Reading_Goal.ui", line 276, in set_main_action
File "calibre_plugins.Reading_Goal.main", line 211, in manage_reading_goal
File "calibre_plugins.Reading_Goal.main", line 1002, in update_database
File "calibre_plugins.Reading_Goal.main", line 388, in add_to_goal
File "calibre_plugins.Reading_Goal.main", line 947, in check_database
File "calibre_plugins.Reading_Goal.main", line 1201, in autofill
ValueError: invalid literal for int() with base 10: 'All'
Hi, @Comfy.n.

I checked the code and this line is converting the year from string to integer. The error shows that it tried to convert 'All' to integer. The thing is: the database does not have an 'All' year entry; the dropdown menu option compiles it at execution time. I don't see how you would have an entry called 'All' instead of a number (2023, 2024, 2025...). Did you edited the JSON manually? Can you send me the database so I can have a look?
thiago.eec is online now   Reply With Quote