fix(ci): typing

This commit is contained in:
Barrett Ruth 2025-09-21 00:16:14 -04:00
parent 98aa3edd41
commit 03bb0bda33
2 changed files with 3 additions and 12 deletions

View file

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

View file

@ -355,16 +355,7 @@ function M.scrape_problems_parallel(platform, contest_id, problems, config)
scrape_result = data
if data.tests and #data.tests > 0 then
local ctx_contest_id, ctx_problem_id
if platform == 'cses' then
ctx_contest_id = problem_id
ctx_problem_id = nil
else
ctx_contest_id = contest_id
ctx_problem_id = problem_id
end
local ctx = problem.create_context(platform, ctx_contest_id, ctx_problem_id, config)
local ctx = problem.create_context(platform, contest_id, problem_id, config)
local base_name = vim.fn.fnamemodify(ctx.input_file, ':r')
for i, test_case in ipairs(data.tests) do