Skip to content

Commit

Permalink
🐛 修复人少的时候ba总力战报错
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Apr 4, 2024
1 parent 5658bc0 commit b69b50c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BlueArchiveUID/bauid_raid/get_rank_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ async def get_ranking_from_xtzx(
'120000',
'200000',
]:
if rank in data['data'] and data["data"][rank]:
if (
rank in data['data']
and data["data"][rank]
and data["data"][rank][-1]
):
im_list.append(f'第{rank}名: {data["data"][rank][-1]:,}')

# im_list.append('✅换源请发【总力战档位】')
Expand Down

0 comments on commit b69b50c

Please sign in to comment.