View Single Post
Old 08-15-2024, 06:35 AM   #490
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
1) When you add a book to your goal, the current date/progress will be registered as you your first record

2) A new record is created only when you change the progress. If you check your json, at this point, you will see this:
Code:
"records": {
        "0": {
          "date": null,
          "read_pages": 0,
          "status": 0
        }
      },
The main entry is not really a record. It is constantly updated, reflecting the information in your calibre library. If you change any of the metadata, the Edit Reading Goal dialog will be updated too. So, you'll see the new date, but no new record was created.

3) Here you updated the progress, hence got a new record. Now you json looks similar to this:
Code:
"records": {
        "0": {
          "date": null,
          "read_pages": 0,
          "status": 0
        },
        "1": {
          "date": {
            "__class__": "datetime.datetime",
            "__value__": "2024-08-15T10:23:50.830000+00:00"
          },
          "read_pages": 3,
          "status": 1
        }
      },

P.S.:
Quote:
Originally Posted by ownedbycats View Post
Unless the undated 0% entry is deleted, the dated 0% entry disappears.
When delete your only record, then the plugin creates a new record based on you current data, because there must be at least one record all the time.
thiago.eec is online now   Reply With Quote