From 2c4600cf0e60d9a26766d20c0e7ef6a850081272 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Sun, 24 Jul 2016 22:55:08 +0800 Subject: [PATCH] fix get node_id --- db_transfer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_transfer.py b/db_transfer.py index a234ce6..dbb0427 100644 --- a/db_transfer.py +++ b/db_transfer.py @@ -413,7 +413,7 @@ class Dbv3Transfer(DbTransfer): cur = conn.cursor() - cur.execute("SELECT `traffic_rate` FROM ss_node where `id`='" + str(get_config().NODE_ID) + "'") + cur.execute("SELECT `traffic_rate` FROM ss_node where `id`='" + str(self.cfg["node_id"]) + "'") nodeinfo = cur.fetchone() if nodeinfo == None :