Make string param boolean
This commit is contained in:
@@ -32,6 +32,8 @@ def getParams(params):
|
|||||||
current = current[item]
|
current = current[item]
|
||||||
else:
|
else:
|
||||||
temp[param] = toUnicode(unquote(value))
|
temp[param] = toUnicode(unquote(value))
|
||||||
|
if temp[param].lower() in ['true', 'false']:
|
||||||
|
temp[param] = temp[param].lower() != 'false'
|
||||||
|
|
||||||
return dictToList(temp)
|
return dictToList(temp)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user