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

@ -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,