commit 70a90f3c65cb63a6839b75dadd6999b422bd56ec Author: Isis Lovecruft isis@torproject.org Date: Sat Feb 21 22:43:11 2015 +0000
Fix missing import of addOrUpdateBridgeHistory() in bridgedb.Main. --- lib/bridgedb/Main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py index 7bc5cff..440784b 100644 --- a/lib/bridgedb/Main.py +++ b/lib/bridgedb/Main.py @@ -46,6 +46,8 @@ import bridgedb.Bridges as Bridges import bridgedb.Dist as Dist import bridgedb.Storage
+from bridgedb.Stability import addOrUpdateBridgeHistory +
def updateBridgeHistory(bridges, timestamps): """Process all the timestamps and update the bridge stability statistics in @@ -76,7 +78,7 @@ def updateBridgeHistory(bridges, timestamps): ("Adding/updating timestamps in BridgeHistory for %s in " "database: %s") % (fingerprint, timestamp)) timestamp = toUnixSeconds(timestamp.timetuple()) - bridgedb.Stability.addOrUpdateBridgeHistory(bridge, timestamp) + addOrUpdateBridgeHistory(bridge, timestamp) # Replace the timestamps so the next sort is (hopefully) less # expensive: sortedTimestamps[fingerprint] = stamps
tor-commits@lists.torproject.org