fix a bug
This commit is contained in:
parent
68d0c8e260
commit
5709f7d901
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
#更新用户流量到数据库
|
||||
|
|
Loading…
Add table
Reference in a new issue