[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [depictor/master] If no protocol is specified in both the vote and consensus, do not write it in red.



commit 205f87724745e8999bdfc5c67807e585af500359
Author: Tom Ritter <tom@xxxxxxxxx>
Date:   Fri Apr 16 22:53:22 2021 -0400

    If no protocol is specified in both the vote and consensus, do not write it in red.
---
 website.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/website.py b/website.py
index e19d341..6637773 100755
--- a/website.py
+++ b/website.py
@@ -979,13 +979,13 @@ class WebsiteWriter:
 		s = ""
 		for k in keys:
 			s += k + "="
-			if c and (k not in v or k not in c or c[k] != v[k]):
+			if c and c.get(k, None) != v.get(k, None):
 				s += "<span class=\"oiv\">"
 			if k in v:
 				s += ",".join([str(i) for i in v[k]])
 			else:
 				s += "(none)"
-			if c and (k not in v or k not in c or c[k] != v[k]):
+			if c and c.get(k, None) != v.get(k, None):
 				s += "</span>"
 			s += " "
 		return s



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits