mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
[redhat-3.12] bug: fixing NaN value error for quota displayed on member org page (PROJQUAY-6465) (#3329)
bug: fixing NaN value error for quota displayed on member org page (PROJQUAY-6465) --------- Co-authored-by: Shubhra Deshpande <shubhrajayant+github.com>
This commit is contained in:
committed by
GitHub
parent
edba8f7a5a
commit
5377be160d
@@ -106,11 +106,11 @@ def org_view(o, teams):
|
||||
view["tag_expiration_s"] = o.removed_tag_expiration_s
|
||||
view["is_free_account"] = o.stripe_id is None
|
||||
|
||||
if is_admin or is_member:
|
||||
if features.QUOTA_MANAGEMENT and features.EDIT_QUOTA:
|
||||
quotas = model.namespacequota.get_namespace_quota_list(o.username)
|
||||
view["quotas"] = [quota_view(quota) for quota in quotas] if quotas else []
|
||||
view["quota_report"] = model.namespacequota.get_quota_for_view(o.username)
|
||||
|
||||
return view
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user