Merge pull request #109 from lifei/patch-1
make sure the type of input value is int
This commit is contained in:
commit
5c9261d592
1 changed files with 2 additions and 2 deletions
|
|
@ -47,8 +47,8 @@ def apihealth():
|
||||||
def reset():
|
def reset():
|
||||||
if 'w' in request.args and 'h' in request.args:
|
if 'w' in request.args and 'h' in request.args:
|
||||||
args = {
|
args = {
|
||||||
'w': request.args.get('w'),
|
'w': int(request.args.get('w')),
|
||||||
'h': request.args.get('h'),
|
'h': int(request.args.get('h')),
|
||||||
}
|
}
|
||||||
state.set_size(args['w'], args['h'])
|
state.set_size(args['w'], args['h'])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue