commit efe8245f333f11cf4e98eec6504d9e0478fe7656 Author: juga0 juga@riseup.net Date: Tue Dec 18 09:14:17 2018 +0000
relayprioritizer: add comment about reading resultdump --- sbws/lib/relayprioritizer.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/sbws/lib/relayprioritizer.py b/sbws/lib/relayprioritizer.py index ee79a19..13ed491 100644 --- a/sbws/lib/relayprioritizer.py +++ b/sbws/lib/relayprioritizer.py @@ -67,6 +67,10 @@ class RelayPrioritizer: relays = set(copy.deepcopy(self.relay_list.relays)) if not self.measure_authorities: relays = relays.difference(set(self.relay_list.authorities)) + # Since there will be new measurements every time this method is called + # again, update the list of results. + # In a future refactor with other data structure there should not be + # needed. rd = self.result_dump for relay in relays: results = rd.results_for_relay(relay)