View Single Post
Old 10-10-2024, 05:19 PM   #582
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,248
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
@ownedbycats, try this version.

I removed the rounding when saving the reading progress. Now it only rounds when displaying. It should reflect the exact page count now.

P.S.: You need to remove the round() function from your template too, or it won't work. If you want, you can format your reading progress column as '{:.0f}%', so it will round when displaying in your library (without losing the real value). That's supposing you column's type is float.

Last edited by thiago.eec; 10-10-2024 at 07:53 PM. Reason: Removed test version.
thiago.eec is offline   Reply With Quote