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

[tor-commits] [pyonionoo/master] lookup fingerprint as well



commit 9603381bda9d689ef0ec1f0e2ffb309449402555
Author: Sathyanarayanan Gunasekaran <gsathya.ceg@xxxxxxxxx>
Date:   Wed Sep 26 18:45:22 2012 +0530

    lookup fingerprint as well
---
 pyonionoo/database.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyonionoo/database.py b/pyonionoo/database.py
index 44a0b25..ab02845 100644
--- a/pyonionoo/database.py
+++ b/pyonionoo/database.py
@@ -205,7 +205,8 @@ def query_summary_tbl(running_filter=None, type_filter=None, hex_fingerprint_fil
     if type_filter:
         clauses.append("type = '%s'" % type_filter)
     if hex_fingerprint_filter:
-        clauses.append("hashed_fingerprint = '%s'" % hex_fingerprint_filter)
+        clauses.append("fingerprint = '%s' or hashed_fingerprint = '%s'" %
+                       (hex_fingerprint_filter, hex_fingerprint_filter))
     if country_filter:
         clauses.append("country_code = '%s'" % country_filter)
     where_clause = ('WHERE %s' % ' and '.join(clauses)) if clauses else ''

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