[tor-commits] [pyonionoo/master] lookup fingerprint as well
karsten at torproject.org
karsten at torproject.org
Thu Sep 27 00:24:34 UTC 2012
commit 9603381bda9d689ef0ec1f0e2ffb309449402555
Author: Sathyanarayanan Gunasekaran <gsathya.ceg at gmail.com>
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 ''
More information about the tor-commits
mailing list