fix(qol): remove ai-like comments
This commit is contained in:
parent
45d439a7b2
commit
fe158aa65f
3 changed files with 1 additions and 5 deletions
|
|
@ -203,8 +203,6 @@ def scrape_contest_problems(contest_id: str) -> list[ProblemSummary]:
|
||||||
ProblemSummary(id=problem_letter, name=problem_name)
|
ProblemSummary(id=problem_letter, name=problem_name)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Preserve contest order - do not sort
|
|
||||||
|
|
||||||
seen: set[str] = set()
|
seen: set[str] = set()
|
||||||
unique_problems: list[ProblemSummary] = []
|
unique_problems: list[ProblemSummary] = []
|
||||||
for p in problems:
|
for p in problems:
|
||||||
|
|
|
||||||
|
|
@ -262,8 +262,6 @@ def scrape_all_problems() -> dict[str, list[ProblemSummary]]:
|
||||||
problem = ProblemSummary(id=problem_id, name=problem_name)
|
problem = ProblemSummary(id=problem_id, name=problem_name)
|
||||||
all_categories[current_category].append(problem)
|
all_categories[current_category].append(problem)
|
||||||
|
|
||||||
# Preserve HTML document order - do not sort
|
|
||||||
|
|
||||||
print(
|
print(
|
||||||
f"Found {len(all_categories)} categories with {sum(len(probs) for probs in all_categories.values())} problems",
|
f"Found {len(all_categories)} categories with {sum(len(probs) for probs in all_categories.values())} problems",
|
||||||
file=sys.stderr,
|
file=sys.stderr,
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ describe('cp.scrape', function()
|
||||||
|
|
||||||
package.loaded['cp.cache'] = mock_cache
|
package.loaded['cp.cache'] = mock_cache
|
||||||
package.loaded['cp.utils'] = mock_utils
|
package.loaded['cp.utils'] = mock_utils
|
||||||
package.loaded['cp.scrape'] = nil -- Force reload
|
package.loaded['cp.scrape'] = nil
|
||||||
scrape = require('cp.scrape')
|
scrape = require('cp.scrape')
|
||||||
|
|
||||||
local original_fn = vim.fn
|
local original_fn = vim.fn
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue