diff --git a/lua/cp/cache.lua b/lua/cp/cache.lua index d2198fb..5b76f3d 100644 --- a/lua/cp/cache.lua +++ b/lua/cp/cache.lua @@ -40,9 +40,9 @@ local cache_data = {} local loaded = false local CONTEST_LIST_TTL = { - cses = 7 * 24 * 60 * 60, -- 1 week - codeforces = 24 * 60 * 60, -- 1 day - atcoder = 24 * 60 * 60, -- 1 day + cses = 7 * 24 * 60 * 60, + codeforces = 24 * 60 * 60, + atcoder = 24 * 60 * 60, } ---@param contest_data ContestData @@ -316,7 +316,7 @@ function M.set_contest_list(platform, contests) cache_data.contest_lists = {} end - local ttl = CONTEST_LIST_TTL[platform] or (24 * 60 * 60) -- Default 1 day + local ttl = CONTEST_LIST_TTL[platform] or (24 * 60 * 60) cache_data.contest_lists[platform] = { contests = contests, cached_at = os.time(), diff --git a/lua/cp/runner/run.lua b/lua/cp/runner/run.lua index 2219983..33814ab 100644 --- a/lua/cp/runner/run.lua +++ b/lua/cp/runner/run.lua @@ -90,7 +90,6 @@ local function parse_test_cases_from_files(input_file, expected_file) local base_name = vim.fn.fnamemodify(input_file, ':r') local test_cases = {} - -- Try numbered files first (created by scraper) local i = 1 while true do local individual_input_file = base_name .. '.' .. i .. '.cpin'