[tor-commits] [depictor/master] Don't omit unused known flags from summary

tom at torproject.org tom at torproject.org
Thu Feb 15 16:40:47 UTC 2018


commit 56b9329eb12ca734d4c4c5339cc33613f327e150
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Tue Feb 6 05:50:33 2018 +0100

    Don't omit unused known flags from summary
    
    In the consensus it is possible that zero relays get assigned a known
    flag. This would cause depictor to create an empty table row which would
    a) hide this information b) look somewhat ugly.
---
 website.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website.py b/website.py
index bcc1cf1..c52bd6e 100755
--- a/website.py
+++ b/website.py
@@ -1248,7 +1248,7 @@ class WebsiteWriter:
 						self.site.write("    <td>" + str(flagsAgree[dirauth_nickname][kf])
 						+ " " + kf + "</td>\n")
 					else:
-						self.site.write("    <td></td>\n")
+						self.site.write("    <td>0 " + kf + "</td>\n")
 
 					if dirauth_nickname in flagsMissing and kf in flagsMissing[dirauth_nickname]:
 						self.site.write("    <td><span class=\"oic\">"





More information about the tor-commits mailing list