Commit eb8222f5 authored by Chrysostomos Nanakos's avatar Chrysostomos Nanakos Committed by Christos Stavrakakis
Browse files

pithos: Remove get_pithos_usage() call from loop

get_pithos_usage() call is needed only once just before entering
the loop and is used every time afterwards.
parent 4f5cfcc6
......@@ -240,10 +240,10 @@ def account_list(request):
return response
account_meta = []
usage = get_pithos_usage(request.x_auth_token)
for x in accounts:
if x == request.user_uniq:
continue
usage = get_pithos_usage(request.x_auth_token)
try:
meta = request.backend.get_account_meta(
request.user_uniq, x, 'pithos', include_user_defined=False,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment