From d45deb78286ac325e24c7217ee23024bf766fc77 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 30 Dec 2020 15:57:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0mysql=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/rankserver/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/rankserver/app.py b/tools/rankserver/app.py index 5c66f76..cb90755 100644 --- a/tools/rankserver/app.py +++ b/tools/rankserver/app.py @@ -157,6 +157,9 @@ def fullUpdateRank(): time.sleep(0.001); if not has_data: break + #end while + cursor.close() + conn.close() r = _getRedis() for channel in kill_hash: @@ -224,6 +227,9 @@ def incrementUpdateRank(): time.sleep(0.001); if not has_data: break + #end while + cursor.close() + conn.close() for channel in kill_hash: _updateKillRank(r, channel, kill_hash[channel])