fix(ci): typing

This commit is contained in:
Barrett Ruth 2025-09-21 00:16:06 -04:00
parent 18939a9d5f
commit 98aa3edd41
2 changed files with 12 additions and 26 deletions

View file

@ -632,7 +632,7 @@ local function setup_contest(contest_id, language)
cache.load()
local missing_problems = {}
for _, problem in ipairs(problems) do
for _, prob in ipairs(problems) do
local cached_tests = cache.get_test_cases(state.platform, contest_id, problem.id)
if not cached_tests then
table.insert(missing_problems, problem)

View file

@ -316,31 +316,17 @@ function M.scrape_problems_parallel(platform, contest_id, problems, config)
local jobs = {}
for _, prob in ipairs(problems) do
local args
if platform == 'cses' then
args = {
'uv',
'run',
'--directory',
plugin_path,
'-m',
'scrapers.' .. platform,
'tests',
prob.id,
}
else
args = {
'uv',
'run',
'--directory',
plugin_path,
'-m',
'scrapers.' .. platform,
'tests',
contest_id,
prob.id,
}
end
local args = {
'uv',
'run',
'--directory',
plugin_path,
'-m',
'scrapers.' .. platform,
'tests',
contest_id,
prob.id,
}
local job = vim.system(args, {
cwd = plugin_path,