fix - return none on get stat on quota
This commit is contained in:
@@ -547,7 +547,7 @@ class Quota(BaseModel):
|
||||
organization=org
|
||||
)
|
||||
# first quota created is none stat on attribute & broker value table
|
||||
if stat.stat_type == 'quota':
|
||||
if stat.first().stat_type == 'quota':
|
||||
return None
|
||||
return stat.first() if stat.exists() else None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user