summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-11-08 14:15:11 -0600
committerDan McGee <dan@archlinux.org>2014-11-08 14:15:11 -0600
commit1a35cbe842212d674d83196ecfa70569ffe2e2da (patch)
treea6ef4c0d265089e080306be5d83029d83f76d0f7
parent886d2934ec672e0d4533f73e8b38248fdff9a6d5 (diff)
Remove percentage filter from Django templates filters
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--mirrors/templatetags/mirror_status.py7
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: