![]() |
#346 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 984
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
|
![]() |
![]() |
![]() |
#347 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 746
Karma: 308700
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Hello @thiago.eec, I'm telling you a question I have.
I have Calibre linked to goodreads but I don't use the reading process, so when I finish reading a book in my calibre I have a status column that will say Read. Create a custom column for the reading process that depends on the Status column, if it says Read it puts 100 and determines it in numbers. But I see that I am not taking well the number of books for the month of November. What could be causing the problem? |
![]() |
![]() |
Advert | |
|
![]() |
#348 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 984
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
I assume your 'goodreadtags' column has multiple values (tags-like), right? Then your template might fail because it compares the whole value of the column. So, if you only have 'Leído' in this column, it will work, but if you have multiple values, like 'Bueno, Leído', it fails. Check if your '#progresos' column is really showing '100' for all the five books. If not, you can correct it changing 'switch_if' for 'in_list': Code:
{#goodreadtags:'in_list($, ',', 'Leído', '100', '')'} Code:
python: def evaluate(book, context): if book.get('#goodreadtags'): if 'Leído' in book.get('#goodreadtags'): return '100' else: return '' else: return '' Last edited by thiago.eec; 12-04-2023 at 07:10 AM. |
|
![]() |
![]() |
![]() |
#349 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 415
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#350 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 746
Karma: 308700
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
I assume your 'goodreadtags' column has multiple values (tags-like), right? Then your template might fail because it compares the whole value of the column. So, if you only have 'Leído' in this column, it will work, but if you have multiple values, like 'Bueno, Leído', it fails.
I only manage three values that depend on which Goodreads shelf the book is on: 'I want to read', 'Reading' and 'Read' Check if your '#progresos' column is really showing '100' for all the five books. If not, you can correct it changing 'switch_if' for 'in_list': Code:
{#goodreadstags:'in_list($, ',', 'Leído', '100', '')'} Check if your '#progress' column actually shows '100' for all five books. All books read in '#progress' Column shows '100' with the three formulas mine and the two suggested by you But the graph cannot reflect reality. I'll try restarting the plugin configuration from scratch. Thanks for your answers Last edited by dunhill; 12-17-2023 at 12:09 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#351 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 746
Karma: 308700
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Achieved!!
I have uninstalled the plugin, removed it from the configuration folder, restarted Calibre and everything works as expected. Thanks for the plugin and for the answers given, it seemed strange to me that I was the only one with this problem Last edited by dunhill; 12-17-2023 at 12:46 PM. |
![]() |
![]() |
![]() |
#352 | |||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 984
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Quote:
Quote:
Also, please describe the steps to get the error, since I cannot reproduce here. The Annual challenge is supposed to be read-only, so you should not be able to delete it (the delete button is disabled). Nonetheless, it seems like you manage to do so (or at least tried to). |
|||
![]() |
![]() |
![]() |
#353 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 746
Karma: 308700
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
Thank you so much ! |
|
![]() |
![]() |
![]() |
#354 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 984
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
|
![]() |
![]() |
![]() |
#355 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,205
Karma: 63194629
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
How does unfinisheds migrating to the next year work?
Will it move over completely, and the 2023 record removed? Or remain in both years? Last edited by ownedbycats; 12-22-2023 at 11:27 PM. |
![]() |
![]() |
![]() |
#356 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 984
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
The database migration will be automatic when you first interact with the plugin in 2024. But there is one manual step needed: since the plugin does not change your calibre library, you'll need to change the date for the migrated books in your library. The plugin will mark them for you. |
|
![]() |
![]() |
![]() |
#357 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,205
Karma: 63194629
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'm suddenly getting this error when opening Statistics. It was working a day or two ago. Edit Reading Goal still opens as expected.
Code:
calibre, version 7.2.0 ERROR: Unhandled exception: <b>ZeroDivisionError</b>:division by zero calibre 7.2 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.11.5 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 7, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 7, 0) && Action Chains (1, 18, 20) && Baen (1, 1, 0) && Barnes & Noble (1, 5, 2) && CalibreSpy (1, 0, 92) && Comments Cleaner (1, 12, 0) && Count Pages (1, 13, 4) && Embed Comic Metadata (1, 6, 6) && EpubCheck (0, 2, 5) && EpubMerge (2, 17, 0) && EpubSplit (3, 6, 0) && Extract ISBN (1, 6, 0) && FanFicFare (4, 30, 0) && Fantastic Fiction (1, 6, 4) && Favourites Menu (1, 3, 0) && Find Duplicates (1, 10, 8) && Generate Cover (2, 3, 3) && GetFileName (0, 2, 0) && Goodreads (1, 7, 9) && Import List (1, 9, 1) && Job Spy (1, 0, 239) && KFX metadata reader (from KFX Input) (2, 7, 0) && From KFX (2, 7, 0) && KFX Input (2, 7, 0) && Kindle hi-res covers (0, 5, 0) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Books (1, 9, 2) && Kobo Utilities (2, 16, 13) && KoboTouchExtended (3, 6, 7) && Last Modified (0, 8, 5) && Manage Series (1, 5, 1) && Modify ePub (1, 8, 2) && MultiColumnSearch (1, 0, 96) && Obok DeDRM (7, 2, 1) && Open With (1, 8, 1) && Overdrive Link (2, 57, 0) && Quality Check (1, 13, 6) && Reading Goal (1, 2, 3) && Reading List (1, 15, 1) && Search The Internet (1, 10, 4) && SmartEject (2, 5, 0) && Standard Ebooks (1, 0, 0) && Sum Column (0, 3, 3) && View Manager (1, 10, 2) && Walk Search History (1, 5, 3) && Overdrive Link Metadata Source (2, 57, 0) Traceback (most recent call last): File "calibre_plugins.Reading_Goal.main", line 218, in manage_reading_goal File "calibre_plugins.Reading_Goal.main", line 2793, in statistics_main File "calibre_plugins.Reading_Goal.main", line 2703, in statistics_tree ZeroDivisionError: division by zero Last edited by ownedbycats; 12-31-2023 at 12:59 PM. |
![]() |
![]() |
![]() |
#358 |
Weirdo
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 695
Karma: 8910012
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Tolino Shine Color, Tolino Vision 6, Kobo Clara 2E, Boox Note Air 2+
|
I’ve had the same. It’s calculating the remaining days which is 0 today. Guess what, you can’t divide by zero 😬
This only affect the statistics view, if you check out the other views it should be fine. |
![]() |
![]() |
![]() |
#359 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 984
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Hi guys
I'll fix this asap. P.S.: You can delete it, @ownedbycats |
![]() |
![]() |
![]() |
#360 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,274
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
The olde Year end roll over issue strikes again. (it is a pretty common oversight. )
I got a call because things stopped working after Y2K. The client had been assured that there was code to handle that from the app author. Yep, there was code... not tested and done wrong ![]() ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Reading List | kiwidude | Plugins | 1405 | Yesterday 05:29 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |
Reading Goal | KyBunnies | Audiobook Discussions | 12 | 10-25-2017 05:29 PM |