Revision 68b991bc snf-astakos-app/astakos/im/quotas.py

b/snf-astakos-app/astakos/im/quotas.py
39 39

  
40 40

  
41 41
def from_holding(holding):
42
    limit, imported_min, imported_max = holding
42
    limit, usage_min, usage_max = holding
43 43
    body = {'limit':       limit,
44
            'usage':       imported_max,
45
            'pending':     imported_max-imported_min,
44
            'usage':       usage_max,
45
            'pending':     usage_max-usage_min,
46 46
            }
47 47
    return body
48 48

  
49 49

  
50 50
def limits_only(holding):
51
    limit, imported_min, imported_max = holding
51
    limit, usage_min, usage_max = holding
52 52
    return limit
53 53

  
54 54

  

Also available in: Unified diff