diff options
author | Jelle van der Waa <jelle@archlinux.org> | 2019-02-18 20:39:28 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@archlinux.org> | 2019-02-18 20:56:15 +0100 |
commit | fdae105d968bcd29b2b31407a99882f66ab07de0 (patch) | |
tree | 965864a4be9956c3dabeec23745789dea068ca29 /mirrors/templatetags | |
parent | 413c173c214fd7fa3e34d1559cf21f04ec8067cb (diff) | |
download | archweb-fdae105d968bcd29b2b31407a99882f66ab07de0.tar.gz archweb-fdae105d968bcd29b2b31407a99882f66ab07de0.zip |
mirrors: replace self-written floatvalue with floatformat
In 2013 floatformat was very slow in the mirror status page, these days
floatformat is not that much slower.
Diffstat (limited to 'mirrors/templatetags')
-rw-r--r-- | mirrors/templatetags/mirror_status.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mirrors/templatetags/mirror_status.py b/mirrors/templatetags/mirror_status.py index b3810d9a..83c1571a 100644 --- a/mirrors/templatetags/mirror_status.py +++ b/mirrors/templatetags/mirror_status.py @@ -25,11 +25,6 @@ def hours(value): return '%d hour' % hrs return '%d hours' % hrs -@register.filter -def floatvalue(value, arg=2): - if value is None: - return u'' - return '%.*f' % (arg, value) @register.filter def percentage(value, arg=1): |