Skip to content
Snippets Groups Projects
Commit f9b8eb62 authored by inso's avatar inso
Browse files

Fix #576

parent 6d180b28
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ def _best_answer(answers, answers_data, nb_verification):
best_dict_hash_score = len(answers[best_dict_hash])
for dict_hash in answers:
if len(answers[dict_hash]) > best_dict_hash_score:
best_dict_hash = answers[dict_hash]
best_dict_hash = dict_hash
best_dict_hash_score = len(answers[dict_hash])
if len(answers[dict_hash]) >= nb_verification:
if isinstance(answers_data[dict_hash], errors.DuniterError):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment