fix: 7 bugs — parse_mode, /removeplayer, SNo>300, fd leak, warmup sleep, warmup range, dupe print
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 6s

- cancel_sub: add parse_mode=MARKDOWN_V2 so users don't see literal backslashes
- /removeplayer: add CommandHandler that was advertised in /start but missing from handlers
- parse_standings: raise SNo limit 300→5000 to support large open tournaments
- call_bbp_with_checklist: close mkstemp fd to fix resource leak
- _warmup_cache_sync: make time.sleep(1.0) conditional on HTTP fetch, skip for cache hits
- _warmup_cache_sync: derive start_tnr from max(max_tnr_seen, max cached tnr) instead of hardcoded 1445000
- main: remove duplicate print('Client bot started') after blocking run_polling()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
vrubel 2026-06-22 20:49:28 +00:00
parent 77c8a87e16
commit dd0dd5643d
4 changed files with 36 additions and 15 deletions

View file

@ -150,6 +150,7 @@ def call_bbp_with_checklist(
# Also create temp file for checklist
checklist_fd, checklist_path = tempfile.mkstemp(suffix='.txt')
os.close(checklist_fd)
try:
result = subprocess.run(

View file

@ -120,7 +120,7 @@ def parse_standings(html: str) -> List[Dict]:
continue
sno = int(texts[0])
if sno < 1 or sno > 300:
if sno < 1 or sno > 5000:
continue
# Find name: look for player name (Latin or Cyrillic)