A template has stopped working.
I was using the formula from this thread
https://www.mobileread.com/forums/sh...&postcount=574
Code:
python:
def evaluate(book, context):
vals = context.funcs.book_values('#ranking', 'title:true', '&', 0).split('&')
vals = sorted([float(v) for v in vals], reverse=True)
return str(1 + vals.index(float(book.get('#ranking'))))
to calculate the ranking position and now it says that there is an error on line 4
Give me a hand with the solution