添加mysql关闭
This commit is contained in:
parent
bfb5fe4bd1
commit
d45deb7828
@ -157,6 +157,9 @@ def fullUpdateRank():
|
|||||||
time.sleep(0.001);
|
time.sleep(0.001);
|
||||||
if not has_data:
|
if not has_data:
|
||||||
break
|
break
|
||||||
|
#end while
|
||||||
|
cursor.close()
|
||||||
|
conn.close()
|
||||||
|
|
||||||
r = _getRedis()
|
r = _getRedis()
|
||||||
for channel in kill_hash:
|
for channel in kill_hash:
|
||||||
@ -224,6 +227,9 @@ def incrementUpdateRank():
|
|||||||
time.sleep(0.001);
|
time.sleep(0.001);
|
||||||
if not has_data:
|
if not has_data:
|
||||||
break
|
break
|
||||||
|
#end while
|
||||||
|
cursor.close()
|
||||||
|
conn.close()
|
||||||
|
|
||||||
for channel in kill_hash:
|
for channel in kill_hash:
|
||||||
_updateKillRank(r, channel, kill_hash[channel])
|
_updateKillRank(r, channel, kill_hash[channel])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user