View Single Post
Old 11-12-2024, 08:34 PM   #658
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,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
Perhaps for the future, the option to switch years in the Challenges dialog?
I'll look into it.

Quote:
Originally Posted by ownedbycats View Post
EDIT: I also noticed that the count and progress in challenges_dict need to be updated manually - I half-expected that though.
Past years are not updated, remember?

Quote:
Originally Posted by ownedbycats View Post
New question: On the years that were added retroactively, the challenges_dict is empty (no annual goal, just "challenges_dict": {}. However, I found that I had to add both an "Annual" and "2022 purchases" in order to get the latter to appear in Edit Goal.

Why does this happen? Is is offset by one to keep Annual from appearing in the dropdown?
1) You can add challenges only for the current year, so anything before 2023 will have a blank 'challenges_dict'.

2) When Challenges were added to the plugin, a one time update was performed to add the 'challenges_dict' key to past years, but they were left empty. This way we can have a general code for challenges.

3) From there on, every year has an 'Annual' challenge that includes all the books, plus the others created by the user. Every book added to the current year goal is also automatically added to the the 'Annual' challenge. So, the plugin expects this. This is why you have to add to 'Annual' too.
thiago.eec is offline   Reply With Quote