feat: pairings output - show ±5 around subscribed player
- _build_table_rows: filter to ±5 boards around player
- Normalize names (strip commas) for matching FIDE vs pairings format
- Highlight subscribed player with ✅ emoji
- Reduce name column width to compensate for emoji
- Add tournament name to pairing header
- Manual URL flow: look up subscription to highlight player
- Fix MarkdownV2 escaping for em-dash
This commit is contained in:
parent
89f5861ee3
commit
ba293dcb70
2 changed files with 73 additions and 14 deletions
|
|
@ -728,7 +728,8 @@ async def check_all_subscriptions(context):
|
|||
if current_rd > sub['last_round_done'] and current_rd < tournament.get('num_rounds', 0):
|
||||
try:
|
||||
result = calculate_next_round(tournament)
|
||||
fmt = format_pairings(result, tournament.get('name', ''), sub['lang'])
|
||||
fmt = format_pairings(result, tournament.get('name', ''), sub['lang'],
|
||||
sub['player_name'])
|
||||
chunks = _render_chunks(fmt)
|
||||
for chunk in chunks:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue