1
This commit is contained in:
parent
4d1302659b
commit
da9c86495e
@ -88,7 +88,10 @@ def _refreshData(row, data_list, data_info):
|
|||||||
num = row[9]
|
num = row[9]
|
||||||
if (time.time() > row[10]):
|
if (time.time() > row[10]):
|
||||||
num = 0
|
num = 0
|
||||||
data_list.append((row[0], row[1].decode('utf-8'), row[2], kill, alive_time, harm, win_times, row[6], num))
|
user_name = ''
|
||||||
|
if row[1]:
|
||||||
|
user_name = row[1].decode('utf-8')
|
||||||
|
data_list.append((row[0], user_name, row[2], kill, alive_time, harm, win_times, row[6], num))
|
||||||
data_list.sort(key=key_info, reverse=True)
|
data_list.sort(key=key_info, reverse=True)
|
||||||
if (len(data_list) > 50):
|
if (len(data_list) > 50):
|
||||||
del data_list[50:]
|
del data_list[50:]
|
||||||
@ -139,7 +142,9 @@ def fullUpdateRank():
|
|||||||
for row in cursor:
|
for row in cursor:
|
||||||
has_data = True
|
has_data = True
|
||||||
last_idx = max(row[8], last_idx)
|
last_idx = max(row[8], last_idx)
|
||||||
user_name = str(row[1], encoding='utf8')
|
user_name = ''
|
||||||
|
if row[1]:
|
||||||
|
user_name = str(row[1], encoding='utf8')
|
||||||
if IGNORE_GUEST_ACCOUNT and (user_name == '游客' or user_name == '极乐玩家'):
|
if IGNORE_GUEST_ACCOUNT and (user_name == '游客' or user_name == '极乐玩家'):
|
||||||
continue
|
continue
|
||||||
#更新击杀榜
|
#更新击杀榜
|
||||||
@ -208,7 +213,9 @@ def incrementUpdateRank():
|
|||||||
has_data = True
|
has_data = True
|
||||||
channel = f7.getChannelByAccountId(row[0])
|
channel = f7.getChannelByAccountId(row[0])
|
||||||
last_idx = max(row[8], last_idx)
|
last_idx = max(row[8], last_idx)
|
||||||
user_name = str(row[1], encoding='utf8')
|
user_name = ''
|
||||||
|
if row[1]:
|
||||||
|
user_name = str(row[1], encoding='utf8')
|
||||||
if IGNORE_GUEST_ACCOUNT and (user_name == '游客' or user_name == '极乐玩家'):
|
if IGNORE_GUEST_ACCOUNT and (user_name == '游客' or user_name == '极乐玩家'):
|
||||||
continue
|
continue
|
||||||
if checkchannel(channel):
|
if checkchannel(channel):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user