summaryrefslogtreecommitdiffstats
path: root/module/web/webinterface.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/webinterface.py')
-rw-r--r--module/web/webinterface.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/web/webinterface.py b/module/web/webinterface.py
index e54c8b137..4d07c436e 100644
--- a/module/web/webinterface.py
+++ b/module/web/webinterface.py
@@ -29,7 +29,7 @@ PYLOAD_DIR = abspath(join(PROJECT_DIR, "..", ".."))
sys.path.append(PYLOAD_DIR)
from module import InitHomeDir
-from module.utils import decode
+from module.utils import decode, formatSize
import bottle
from bottle import run, app
@@ -81,6 +81,7 @@ env.filters["path_make_relative"] = path_make_relative
env.filters["path_make_absolute"] = path_make_absolute
env.filters["decode"] = decode
env.filters["type"] = lambda x: str(type(x))
+env.filters["formatsize"] = formatSize
translation = gettext.translation("django", join(PYLOAD_DIR, "locale"),