[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [depictor/master] Don't omit unused known flags from summary
commit 56b9329eb12ca734d4c4c5339cc33613f327e150
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
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\">"
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits