Skip to content

Commit

Permalink
Remove hw 1 from submit and add note in Readme about that
Browse files Browse the repository at this point in the history
  • Loading branch information
Franverri authored and atralice committed Oct 21, 2020
1 parent 1e6d0ef commit cdf8eab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

__IMPORTANTE:__ Luego de completar cada una de las homeworks del día deberán ejecutar el siguiente comando para subir sus trabajos a sus repositorios (Deben estar posicionados sobre la carpeta principal `Curso.Prep.Henry` para que funcione y haber corrido previamente `npm install`:

Para la homework número 1 no es necesario ya que su trabajo se realiza por fuera de este repositorio

```bash
node submit.js {numeroHomework}
Expand Down
4 changes: 2 additions & 2 deletions submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function submit(pasados, total) {
}

var args = process.argv.slice(2);
if(args.length != 1 || !(["1","2","3","4","5","6","7","8","9"].includes(args[0]))) {
if(args.length != 1 || !(["2","3","4","5","6","7","8","9"].includes(args[0]))) {
console.log("Parámetro inválido revise que sea un número de homework válido");
return process.exit(0);
}
Expand All @@ -76,7 +76,7 @@ try {
} catch(err) {
console.log("El archivo result.json no existe por lo que se creará uno nuevo");
}
if(hwNumber === '1' || hwNumber === '8' || hwNumber === '9'){
if(hwNumber === '8' || hwNumber === '9'){
console.log("Homework sin tests \n");
submit(0,0);
} else {
Expand Down

0 comments on commit cdf8eab

Please sign in to comment.