Archived
1
0
Fork 0

fix format

This commit is contained in:
多羅狼 2024-01-10 10:58:01 +08:00 committed by GitHub
parent fdbc6babc9
commit 5c52665125
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -44,7 +44,7 @@ async def generate_best30_text(msg, payload):
)
title = chart["title"]
title = title[:17] + '...' if len(title) > 20 else title
line = "#{:<2} {:<4} {:<3} {:<7} {:<4} {:<2} {:>4}->{:<5.2f} {:<20}\n".format(
line = "#{:<2} {:>4} {:<3} {:>7} {:<4} {:<2} {:>4}->{:<5.2f} {:<20}\n".format(
idx,
chart["mid"],
level,
@ -56,7 +56,7 @@ async def generate_best30_text(msg, payload):
title
)
html += line
html += "\n"
html += "Recent10\n"
for idx, chart in enumerate(r10_records, start=1):
level = ''.join(filter(str.isalpha, chart["level_label"]))[:3].upper()
rank = next(
@ -64,7 +64,7 @@ async def generate_best30_text(msg, payload):
)
title = chart["title"]
title = title[:17] + '...' if len(title) > 20 else title
line = "#{:<2} {:<4} {:<3} {:<7} {:<4} {:<2} {:>4}->{:<5.2f} {:<20}\n".format(
line = "#{:<2} {:>4} {:<3} {:>7} {:<4} {:<2} {:>4}->{:<5.2f} {:<20}\n".format(
idx,
chart["mid"],
level,

View file

@ -159,7 +159,7 @@ async def generate_best50_text(msg, payload):
)
title = chart["title"]
title = title[:17] + '...' if len(title) > 20 else title
line = "#{:<2} {:<5} {:<3} {:<8.4f}% {:<4} {:<3} {:<4} {:>4}->{:<3} {:<20}\n".format(
line = "#{:<2} {:>5} {:<3} {:>8.4f}% {:<4} {:<3} {:<4} {:>4}->{:<3} {:<20}\n".format(
idx,
chart["song_id"],
level,
@ -180,7 +180,7 @@ async def generate_best50_text(msg, payload):
)
title = chart["title"]
title = title[:17] + '...' if len(title) > 20 else title
line = "#{:<2} {:<5} {:<3} {:<8.4f}% {:<4} {:<3} {:<4} {:>4}->{:<3} {:<20}\n".format(
line = "#{:<2} {:>5} {:<3} {:>8.4f}% {:<4} {:<3} {:<4} {:>4}->{:<3} {:<20}\n".format(
idx,
chart["song_id"],
level,