forked from 0x2620/pandora
add missing k/v to static pages
This commit is contained in:
parent
60101d593d
commit
13df4cd116
1 changed files with 2 additions and 1 deletions
|
@ -643,13 +643,14 @@ class Item(models.Model):
|
||||||
for key in [
|
for key in [
|
||||||
'duration', 'aspectratio',
|
'duration', 'aspectratio',
|
||||||
'hue', 'saturation', 'lightness',
|
'hue', 'saturation', 'lightness',
|
||||||
'volume', 'cutsperminute'
|
'volume', 'cutsperminute', 'wordsperminute'
|
||||||
]:
|
]:
|
||||||
value = data.get(key, 0)
|
value = data.get(key, 0)
|
||||||
if value:
|
if value:
|
||||||
info.append('<b>%s:</b> %s' % (
|
info.append('<b>%s:</b> %s' % (
|
||||||
'Aspect Ratio' if key == 'aspectratio'
|
'Aspect Ratio' if key == 'aspectratio'
|
||||||
else 'Cuts per Minute' if key == 'cutsperminute'
|
else 'Cuts per Minute' if key == 'cutsperminute'
|
||||||
|
else 'Words per Minute' if key == 'wordsperminute'
|
||||||
else key.capitalize(),
|
else key.capitalize(),
|
||||||
ox.format_duration(value * 1000 if value else 0, milliseconds=False) if key == 'duration'
|
ox.format_duration(value * 1000 if value else 0, milliseconds=False) if key == 'duration'
|
||||||
else '%.3f:1' % value if key == 'aspectratio'
|
else '%.3f:1' % value if key == 'aspectratio'
|
||||||
|
|
Loading…
Reference in a new issue