fix(cache): actually use the cache
This commit is contained in:
parent
e6c54e01fd
commit
847307bd1f
1 changed files with 2 additions and 3 deletions
|
|
@ -77,9 +77,8 @@ local function setup_problem(contest_id, problem_id, language)
|
||||||
local cached_test_cases = cache.get_test_cases(state.platform, contest_id, problem_id)
|
local cached_test_cases = cache.get_test_cases(state.platform, contest_id, problem_id)
|
||||||
if cached_test_cases then
|
if cached_test_cases then
|
||||||
state.test_cases = cached_test_cases
|
state.test_cases = cached_test_cases
|
||||||
end
|
logger.log(('using cached test cases (%d)'):format(#cached_test_cases))
|
||||||
|
elseif vim.tbl_contains(config.scrapers, state.platform) then
|
||||||
if vim.tbl_contains(config.scrapers, state.platform) then
|
|
||||||
local scrape_result = scrape.scrape_problem(ctx)
|
local scrape_result = scrape.scrape_problem(ctx)
|
||||||
|
|
||||||
if not scrape_result.success then
|
if not scrape_result.success then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue