Out of curiosity, I decided to decide whether it was possible to retroactively create a challenge for a previous year.
My steps;
1. Take a backup of the JSON.
2. In challenges_dict, duplicate this year's "Books Purchased in 2024" challenge. I then edited the name, timestamps, and reset count and progress:
Code:
"Books Purchased in 2023": {
"count": 0,
"end": {
"__class__": "datetime.datetime",
"__value__": "2023-12-31T04:00:00+00:00"
},
"progress": 0,
"start": {
"__class__": "datetime.datetime",
"__value__": "2023-01-01T04:00:00+00:00"
}
},
3. Check the "custom challenges" dialog to make sure the newly-created challenge appeared.
4. Go to a book from 2023's goal, and edited it:
Code:
"challenges": [
"Annual",
"Books Purchased in 2023"
],
However, here is where I got stuck. I expected the 'count' and 'progress' to automatically update itself; it didn't, so I edited them to 1 and 100. When I next opened Edit Goal, it reset both back to 0 and the challenge appeared for the current year (with no books):
I've just reverted to my backup, but I'm curious whether I missed something here that could've made it work.