commit 86f70053e78603cda513cf81b9144f85c52f12f9 Author: Damian Johnson atagar@torproject.org Date: Mon Oct 5 08:00:49 2015 -0700
Sort fingerprint changes by time
We can easily have a ton of these. Sort them by the publication time to make reading the email easier. --- fingerprint_change_checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fingerprint_change_checker.py b/fingerprint_change_checker.py index a0ae061..b7ce03a 100755 --- a/fingerprint_change_checker.py +++ b/fingerprint_change_checker.py @@ -63,8 +63,8 @@ def main(): log.debug("* %s:%s has had %i fingerprints: %s" % (address, or_port, len(fp_changes), ', '.join(fp_changes.keys()))) body += "* %s:%s\n" % (address, or_port)
- for fingerprint, published in fp_changes.items(): - body += " %s at %s\n" % (fingerprint, datetime.datetime.fromtimestamp(published).strftime('%Y-%m-%d %H:%M:%S')) + for fingerprint in sorted(fp_changes, reverse = True, key = lambda k: fp_changes[k]): + body += " %s at %s\n" % (fingerprint, datetime.datetime.fromtimestamp(fp_changes[fingerprint]).strftime('%Y-%m-%d %H:%M:%S'))
body += "\n"
tor-commits@lists.torproject.org