Limit rating to three stars
This commit is contained in:
@@ -35,8 +35,8 @@ choice_labels = Easy, Medium, Hard
|
||||
label = Rating
|
||||
width = 1/8
|
||||
type = select
|
||||
choices = 1, 2, 3, 4, 5
|
||||
choice_labels = ★☆☆☆☆, ★★☆☆☆, ★★★☆☆, ★★★★☆, ★★★★★
|
||||
choices = 1, 2, 3
|
||||
choice_labels = ★☆☆, ★★☆, ★★★
|
||||
|
||||
[fields.yield]
|
||||
label = Yield / Menge
|
||||
|
||||
@@ -72,7 +72,7 @@ def replaceFractions(txt):
|
||||
return res.lstrip(' ')
|
||||
|
||||
|
||||
def numFillWithText(num, fill=u'★', empty=u'☆', total=5):
|
||||
def numFillWithText(num, fill=u'★', empty=u'☆', total=3):
|
||||
num = int(num) if num else 0
|
||||
return fill * num + empty * (total - num)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user