View Single Post
Old 11-12-2024, 03:05 PM   #654
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,110
Karma: 77213681
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
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):

Click image for larger version

Name:	2024-11-12 16_02_20-Edit reading goal.png
Views:	78
Size:	17.8 KB
ID:	211978

I've just reverted to my backup, but I'm curious whether I missed something here that could've made it work.

Last edited by ownedbycats; 11-12-2024 at 03:07 PM.
ownedbycats is offline   Reply With Quote