diff options
author | Dan McGee <dan@archlinux.org> | 2014-11-08 14:15:11 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-11-08 14:15:11 -0600 |
commit | 1a35cbe842212d674d83196ecfa70569ffe2e2da (patch) | |
tree | a6ef4c0d265089e080306be5d83029d83f76d0f7 /mirrors | |
parent | 886d2934ec672e0d4533f73e8b38248fdff9a6d5 (diff) |
Remove percentage filter from Django templates filtersrelease_2014-11-08
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-rw-r--r-- | mirrors/templatetags/mirror_status.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/mirrors/templatetags/mirror_status.py b/mirrors/templatetags/mirror_status.py index b3810d9a..c8004e4b 100644 --- a/mirrors/templatetags/mirror_status.py +++ b/mirrors/templatetags/mirror_status.py @@ -31,11 +31,4 @@ def floatvalue(value, arg=2): return u'' return '%.*f' % (arg, value) -@register.filter -def percentage(value, arg=1): - if not value and type(value) != float: - return u'' - new_val = value * 100.0 - return '%.*f%%' % (arg, new_val) - # vim: set ts=4 sw=4 et: |