Revision 51db2da2 snf-astakos-app/astakos/api/quotas.py
b/snf-astakos-app/astakos/api/quotas.py | ||
---|---|---|
89 | 89 |
@api.api_method(http_method='GET', token_required=True, user_required=False) |
90 | 90 |
@component_from_token |
91 | 91 |
def get_pending_commissions(request): |
92 |
data = request.GET |
|
93 | 92 |
client_key = str(request.component_instance) |
94 | 93 |
|
95 | 94 |
result = qh.get_pending_commissions(clientkey=client_key) |
... | ... | |
183 | 182 |
name=name, |
184 | 183 |
force=force) |
185 | 184 |
if accept: |
186 |
done = qh.resolve_pending_commission(clientkey=clientkey, |
|
187 |
serial=serial) |
|
185 |
qh.resolve_pending_commission(clientkey=clientkey, serial=serial) |
|
188 | 186 |
|
189 | 187 |
return serial |
190 | 188 |
|
... | ... | |
255 | 253 |
serial=serial) |
256 | 254 |
status_code = 200 |
257 | 255 |
return json_response(data, status_code) |
258 |
except qh_exception.NoCommissionError as e:
|
|
256 |
except qh_exception.NoCommissionError: |
|
259 | 257 |
return HttpResponse(status=404) |
260 | 258 |
|
261 | 259 |
|
Also available in: Unified diff