This commit is contained in:
wangwei01 2019-07-19 14:41:24 +08:00
parent 1c70125c97
commit 6ed554e74c

View File

@ -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()