From 58c446de2d6d7b8cd872a47c98cd445f06357448 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 30 Jun 2013 15:20:02 +0200 Subject: [PATCH] Make string param boolean --- couchpotato/core/helpers/request.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/couchpotato/core/helpers/request.py b/couchpotato/core/helpers/request.py index 0ac84ef8..c2249796 100644 --- a/couchpotato/core/helpers/request.py +++ b/couchpotato/core/helpers/request.py @@ -32,6 +32,8 @@ def getParams(params): current = current[item] else: temp[param] = toUnicode(unquote(value)) + if temp[param].lower() in ['true', 'false']: + temp[param] = temp[param].lower() != 'false' return dictToList(temp)