feat: lazy
This commit is contained in:
parent
aed09a0900
commit
806d15fa31
3 changed files with 142 additions and 82 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue