Source: site.view [edit]
Function name: cmdChooseRankSet
Arguments:
Description: Finds a set of people to rank according to a skill. If skill (optionally) passed in, only finds results for that skill.
Page type: webl
Render function:  
Module: skillsrank

Page source:

var skills;
if Size(OPTIONALARGS) > 0 then
   skills = [ OPTIONALARGS[0] ]
else
   skills = WubCall("dataSkillsList", []);
end;

var res = [. .];

var done = false;
while !done do
   var skill;
   if (Size(skills) > 1) then
      var rnd = Wub_RandomInt(Size(skills)-1);
      skill = skills[rnd]
   else
      skill = skills[0];
      done = true
   end;
   var search = WubCall("cmdSearchResumes", [skill,"","","","",""]);
   if (Size(search.people) > 3) then
      res[skill] := search.people;
      done = true
   end;
   done = true
end;

res;