[tor-commits] [depictor/master] Add commented debugging to write_website.py
tom at torproject.org
tom at torproject.org
Mon Mar 23 16:32:51 UTC 2015
commit b0f88d0eab7dc04bb5eac7fa3ca12e204feb2b2d
Author: Tom Ritter <tom at ritter.vg>
Date: Sun Mar 8 12:58:27 2015 -0500
Add commented debugging to write_website.py
---
write_website.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/write_website.py b/write_website.py
index c0deac6..415c7ea 100755
--- a/write_website.py
+++ b/write_website.py
@@ -59,8 +59,12 @@ def main():
f.write("%s,%i,%i\n" % (ds, time.time() * 1000, int(consensus_fetching_runtimes[ds] * 1000)))
f.close()
- # produces the website
+ # great for debugging
+ #import pickle
+ #pickle.dump(consensuses, open('consensus.p', 'wb'))
+ #pickle.dump(votes, open('votes.p', 'wb'))
+ # produces the website
w = WebsiteWriter()
w.set_consensuses(consensuses)
w.set_votes(votes)
More information about the tor-commits
mailing list