fix format
This commit is contained in:
parent
fdbc6babc9
commit
5c52665125
2 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Reference in a new issue