def arg_bool ( name , default = False ) : v = request . args . get ( name , '' ) if not len ( v ) : return default return v in BOOL_TRUISH
python check request querystring none
Fetch a query argument as a boolean .
def arg_bool(name, default=False):
    """ Fetch a query argument, as a boolean. """
    v = request.args.get(name, '')
    if not len(v):
        return default
    return v in BOOL_TRUISH