fix(scraper): multi-letter codeforces problems

This commit is contained in:
Barrett Ruth 2025-09-14 20:07:08 -05:00
parent 10a9ff1e4c
commit d1b9469342
2 changed files with 21 additions and 1 deletions

View file

@ -80,7 +80,7 @@ def scrape_contest_problems(contest_id: str) -> list[dict[str, str]]:
problem_letter: str = href.split("/")[-1].lower()
problem_name: str = link.get_text(strip=True)
if problem_letter and problem_name and len(problem_letter) == 1:
if problem_letter and problem_name:
problems.append({"id": problem_letter, "name": problem_name})
problems.sort(key=lambda x: x["id"])