Skip to content

Commit

Permalink
[FEAT] ~minor ✨ ready pal desmadre
Browse files Browse the repository at this point in the history
[Link a la tarea ](https://apps.edicomgroup.com/JDev/#idstask|)
/label ~"status::needs triage" ~type::feat ~minor
/assign me
  • Loading branch information
jsan committed Feb 24, 2022
1 parent 13c70e5 commit 64b1b30
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"name": "qualification",
"request": "launch",
// npm run [practice | qualification] {dataset}
"command": "npm run qualification a",
"command": "npm run qualification b",
"cwd": "${workspaceFolder}"
},
{
Expand Down
19 changes: 13 additions & 6 deletions qualification_round/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,25 @@ readDataset(path.resolve(process.cwd(), `${datasetsPath}${datasets[datasetArg]}`
dataset.contributors.forEach((contributor) => {
if (
contributor.skills.find((s) => {
return s.name === skill.name && s.level >= skill.level && !contributor.bussy;
return (
s.name === skill.name &&
s.level >= skill.level &&
!contributor.bussy &&
!skill.fullfiled
);
})
) {
possibleExecutedProject.name = project.name;
skill.fullfiled = true;
possibleExecutedProject.contributors.push(contributor);
contributor.bussy = true;
if (project.numberOfSkills === possibleExecutedProject.contributors.length) {
submission.projects.push(possibleExecutedProject);
possibleExecutedProject.contributors.forEach((c) => {
if (dataset.contributors.find((contributor) => contributor.name === c.name)) {
c.bussy = true;
}
});
// possibleExecutedProject.contributors.forEach((c) => {
// if (dataset.contributors.find((contributor) => contributor.name === c.name)) {
// c.bussy = true;
// }
// });
}
}
});
Expand Down

0 comments on commit 64b1b30

Please sign in to comment.