From 5709f7d9018254eb0c55a74966edd06b430cd2a6 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Mon, 18 Jul 2016 18:23:49 +0800 Subject: [PATCH] fix a bug --- db_transfer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db_transfer.py b/db_transfer.py index 36a37c4..ad531ed 100644 --- a/db_transfer.py +++ b/db_transfer.py @@ -49,7 +49,7 @@ class DbTransfer(object): query_sub_in = '%s' % id if query_sub_when == '': - return + return update_transfer query_sql = query_head + ' SET u = CASE port' + query_sub_when + \ ' END, d = CASE port' + query_sub_when2 + \ ' END, t = ' + str(int(last_time)) + \ @@ -61,6 +61,7 @@ class DbTransfer(object): cur.close() conn.commit() conn.close() + return update_transfer def push_db_all_user(self): #更新用户流量到数据库