feat: lazy

This commit is contained in:
Barrett Ruth 2025-09-14 01:46:46 -05:00
parent aed09a0900
commit 806d15fa31
3 changed files with 142 additions and 82 deletions

View file

@ -59,7 +59,13 @@ function M.scrape_contest_metadata(platform, contest_id)
local plugin_path = get_plugin_path()
local scraper_path = plugin_path .. "/scrapers/" .. platform .. ".py"
local args = { "uv", "run", scraper_path, "metadata", contest_id }
local args
if platform == "cses" then
args = { "uv", "run", scraper_path, "metadata" }
else
args = { "uv", "run", scraper_path, "metadata", contest_id }
end
local result = vim.system(args, {
cwd = plugin_path,