def jsonrpc_upload_log(self, p=None):
        if p:
            if 'name_prefix' in p.keys():
                prefix = p['name_prefix'] + '_api'
            else:
                prefix = None
            if p.keys in 'exclude_previous':
                exclude_previous = p['exclude_previous']
            else:
                exclude_previous = True
        else:
            prefix = "api"
            exclude_previous = True

        d = self._upload_log(name_prefix=prefix, exclude_previous=exclude_previous)
        d.addCallback(lambda _: self._render_response(True, OK_CODE))
        return d
dataset/ETHPy150Open lbryio/lbry/lbrynet/lbrynet_daemon/LBRYDaemon.py/LBRYDaemon.jsonrpc_upload_log/swapped operands of `in`