From 22f73a081769984f2e637f1e2dfb8a5850aa4e81 Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 26 Jul 2016 21:46:04 -0400 Subject: [PATCH] add force parameter to resolve_name --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index b66147b64..8c04cf345 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -1671,12 +1671,17 @@ class LBRYDaemon(jsonrpc.JSONRPC): metadata from name claim """ - if 'name' in p.keys(): + if 'force' in p: + force = p['force'] + else: + force = False + + if 'name' in p: name = p['name'] else: return self._render_response(None, BAD_REQUEST) - d = self._resolve_name(name) + d = self._resolve_name(name, force_refresh=force) d.addCallbacks(lambda info: self._render_response(info, OK_CODE), lambda _: server.failure) return d