diff options
Diffstat (limited to 'module/web/utils.py')
-rw-r--r-- | module/web/utils.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/module/web/utils.py b/module/web/utils.py index d7e76f84d..f738560f7 100644 --- a/module/web/utils.py +++ b/module/web/utils.py @@ -44,18 +44,6 @@ def parse_userdata(session): "is_staff": True, "is_authenticated": session.get("authenticated", False)} -def formatSize(size): - """formats size of bytes""" - size = int(size) - steps = 0 - sizes = ["KB", "MB", "GB", "TB"] - - while size > 1000: - size /= 1024.0 - steps += 1 - - return "%.2f %s" % (size, sizes[steps]) - def login_required(perm=None): def _dec(func): def _view(*args, **kwargs): |