From 13df4cd11659d4e238ec47e781cef13a7a655ce2 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 18 Jan 2014 08:48:34 +0000 Subject: [PATCH] add missing k/v to static pages --- pandora/item/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 32903aa8d..0d9ed063d 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -643,13 +643,14 @@ class Item(models.Model): for key in [ 'duration', 'aspectratio', 'hue', 'saturation', 'lightness', - 'volume', 'cutsperminute' + 'volume', 'cutsperminute', 'wordsperminute' ]: value = data.get(key, 0) if value: info.append('%s: %s' % ( 'Aspect Ratio' if key == 'aspectratio' else 'Cuts per Minute' if key == 'cutsperminute' + else 'Words per Minute' if key == 'wordsperminute' else key.capitalize(), ox.format_duration(value * 1000 if value else 0, milliseconds=False) if key == 'duration' else '%.3f:1' % value if key == 'aspectratio'