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

[tor-commits] [depictor/master] Manipulate the query object directly to avoid it removing the .z suffix (when we update stem)



commit 862a966e8f346c8a25016a141b81339cecd84ae3
Author: Tom Ritter <tom@xxxxxxxxx>
Date:   Tue Jul 10 14:57:42 2018 -0500

    Manipulate the query object directly to avoid it removing the .z suffix (when we update stem)
    
    Closes #25782
---
 utility.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/utility.py b/utility.py
index d4f9a68..6b2ee54 100755
--- a/utility.py
+++ b/utility.py
@@ -57,7 +57,10 @@ def _get_documents(label, resource):
 			resource,
 			endpoints = [(authority.address, authority.dir_port)],
 			default_params = False,
+			start = False
 		)
+		# Re-add the .z suffix per #25782
+		query.resource = query.resource + ".z"
 
 		try:
 			start_time = time.time()

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