This commit is contained in:
Barrett Ruth 2025-09-24 00:47:44 -04:00
parent 699207e713
commit 4429b5fe67
2 changed files with 8 additions and 4 deletions

View file

@ -6,7 +6,9 @@ local actions = require('telescope.actions')
local picker_utils = require('cp.pickers')
local function contest_picker(opts, platform)
local contest_picker, problem_picker
function contest_picker(opts, platform)
local constants = require('cp.constants')
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[platform] or platform
local contests = picker_utils.get_contests_for_platform(platform)
@ -57,7 +59,7 @@ local function contest_picker(opts, platform)
:find()
end
local function problem_picker(opts, platform, contest_id)
function problem_picker(opts, platform, contest_id)
local constants = require('cp.constants')
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[platform] or platform
local problems = picker_utils.get_problems_for_contest(platform, contest_id)