View Single Post
Old 08-18-2025, 01:46 PM   #1988
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,207
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by chaley View Post
You're correct: composite columns (built from other columns) can't show stars. However, it would be easy to do a search and replace, copying the "identifier" rating to a custom rating column. This could be done automatically using action chains when books are imported.
You made the template language flexible enough to display rating (I shouldn't be telling you that )

Code:
program:
    rating = $rating;
    text = '';
    for x in range(0,rating):
        text = text & '★'
    rof
The line highlighted in blue should be edited to fetch rating from the appropriate column

Edit: Thinking about this, I was about to suggest a rating_to_stars() function, only to discover it is already there, and it uses halfstars as well.

Last edited by capink; 08-18-2025 at 03:00 PM.
capink is offline   Reply With Quote