Browse Source

Return the result not the full dictionary

283
Neil Booth 9 years ago
parent
commit
cd83b93e98
  1. 2
      scripts/util.py

2
scripts/util.py

@ -75,6 +75,6 @@ def send_request(peers, request):
for peer in interfaces:
if not peer in responses:
print peer, "did not answer"
results = dict(zip(responses.keys(), [t[0][1] for t in responses.values()]))
results = dict(zip(responses.keys(), [t[0][1].get('result') for t in responses.values()]))
print "%d answers"%len(results)
return results

Loading…
Cancel
Save