Skip to content

Commit

Permalink
🐛 修正ba总力战的ex人数数据错误
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Jun 19, 2024
1 parent ed2c202 commit 378c999
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BlueArchiveUID/bauid_raid/get_rank_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ async def get_ranking_from_xtzx(

if person_rank_data is not None:
if len(person_rank_data) >= 1:
_num = None
for i in person_rank_data[:2]:
im_list.append(f'{i["hard"]}人数: {i["rank"]}')
num = i["rank"] if _num is None else i["rank"] - _num
im_list.append(f'{i["hard"]}人数: {num}')
_num = i["rank"] if _num is None else _num + i["rank"]

if top_data is not None:
for ix, i in enumerate(['🥇', '🥈', '🥉']):
Expand Down

0 comments on commit 378c999

Please sign in to comment.