Return the result not the full dictionary

This commit is contained in:
Neil Booth 2015-08-31 18:26:14 +09:00
parent f11e46e479
commit cd83b93e98
1 changed files with 1 additions and 1 deletions

View File

@ -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