Merge "Make query to quota usage table order preserved"
This commit is contained in:
@@ -3373,9 +3373,10 @@ def _get_project_user_quota_usages(context, session, project_id,
|
|||||||
rows = model_query(context, models.QuotaUsage,
|
rows = model_query(context, models.QuotaUsage,
|
||||||
read_deleted="no",
|
read_deleted="no",
|
||||||
session=session).\
|
session=session).\
|
||||||
filter_by(project_id=project_id).\
|
filter_by(project_id=project_id).\
|
||||||
with_lockmode('update').\
|
order_by(models.QuotaUsage.id.asc()).\
|
||||||
all()
|
with_lockmode('update').\
|
||||||
|
all()
|
||||||
proj_result = dict()
|
proj_result = dict()
|
||||||
user_result = dict()
|
user_result = dict()
|
||||||
# Get the total count of in_use,reserved
|
# Get the total count of in_use,reserved
|
||||||
|
|||||||
Reference in New Issue
Block a user