From 6ed554e74c18fcb9e2720068a66705d4124ab7a1 Mon Sep 17 00:00:00 2001 From: wangwei01 Date: Fri, 19 Jul 2019 14:41:24 +0800 Subject: [PATCH] 1 --- tools/rankserver/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/rankserver/app.py b/tools/rankserver/app.py index 06eb87e..b67d8df 100644 --- a/tools/rankserver/app.py +++ b/tools/rankserver/app.py @@ -62,6 +62,8 @@ def readMysqlData(rushtime): cursor.execute('SELECT accountid, user_name, avatar_url, score FROM user;') for row in cursor: score = row[3] + if row[1] == null: + return '' array.append((row[0], row[1].decode('utf-8'), row[2], score)) r = getRedis()