fix display
This commit is contained in:
parent
6600d7ffb7
commit
87a44997d7
|
@ -69,8 +69,15 @@ def build_page(hidden_themes):
|
|||
row_data.append(str(date))
|
||||
row_data.append(VCinemaUtils.get_film_list(data['viewings']))
|
||||
if 'hidden_themes' in data and data['hidden_themes'] != {}:
|
||||
row_data.append(("<br>".join(
|
||||
"{} ({}%)".format(k, data['hidden_themes'][k] * 100) for k in sorted(data['hidden_themes']))))
|
||||
hidden_theme_labels = []
|
||||
|
||||
for hidden_theme in sorted(data['hidden_themes'].keys()):
|
||||
if data['hidden_themes'][hidden_theme] == 1:
|
||||
hidden_theme_labels.append(hidden_theme)
|
||||
else:
|
||||
hidden_theme_labels.append("<i>{} ({}%)</i>".format(hidden_theme, round(data['hidden_themes'][hidden_theme] * 100)))
|
||||
|
||||
row_data.append("<br>".join(hidden_theme_labels))
|
||||
else:
|
||||
row_data.append("N/A")
|
||||
|
||||
|
|
Loading…
Reference in New Issue