Added type conversion for the "reason" parameter
This commit is contained in:
parent
b3e26767de
commit
2833f52afc
@ -171,9 +171,12 @@ def get_params(request):
|
||||
:type request: *
|
||||
|
||||
:return: The request data dictionary.
|
||||
:rtype: dict(str: str)
|
||||
:rtype: dict(str: *)
|
||||
"""
|
||||
return dict(request.forms)
|
||||
params = dict(request.forms)
|
||||
if 'reason' in params:
|
||||
params['reason'] = int(params['reason'])
|
||||
return params
|
||||
|
||||
|
||||
@bottle.put('/')
|
||||
|
Loading…
x
Reference in New Issue
Block a user