diff --git a/lib/galaxy/managers/users.py b/lib/galaxy/managers/users.py index 05d7b2bc4ea6..a729759a550c 100644 --- a/lib/galaxy/managers/users.py +++ b/lib/galaxy/managers/users.py @@ -389,6 +389,9 @@ def quota(self, user, total=False): return self.app.quota_agent.get_quota_nice_size(user) return self.app.quota_agent.get_percent(user=user) + def quota_bytes(self, user): + return self.app.quota_agent.get_quota(user=user) + def tags_used(self, user, tag_models=None): """ Return a list of distinct 'user_tname:user_value' strings that the @@ -618,6 +621,7 @@ def __init__(self, app: MinimalManagerApp): 'nice_total_disk_usage', 'quota_percent', 'quota', + 'quota_bytes', 'deleted', 'purged', # 'active', @@ -644,6 +648,7 @@ def add_serializers(self): 'total_disk_usage': lambda i, k, **c: float(i.total_disk_usage), 'quota_percent': lambda i, k, **c: self.user_manager.quota(i), 'quota': lambda i, k, **c: self.user_manager.quota(i, total=True), + 'quota_bytes': lambda i, k, **c: self.user_manager.quota_bytes(i), 'tags_used': lambda i, k, **c: self.user_manager.tags_used(i), })