Skip to content

Commit

Permalink
Cambios menores
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Feb 20, 2024
1 parent 6a08a27 commit 054c082
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions questions/data/tematicas.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"arte": {
"entity": "Q3305213",
"props": ["P571", "P135", "P276"],
"types": ["date", "str", "str"],
"types": ["str", "str", "str"],
"preguntas": [
"¿En qué fecha se pintó la obra ",
"¿En qué año se pintó la obra ",
"¿A qué movimiento artístico pertenece la obra ",
"¿Dónde está exhibida la obra "
]
Expand Down
10 changes: 1 addition & 9 deletions questions/questionGen/GeneratorChooser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class GeneratorChooser{
constructor(){
this.generators = new Map();
this.tematicas = [];
this.leer_json(`C:\\Users\\marti\\Desktop\\ASW\\wiq_es1a\\questions\\data\\tematicas.json`);
this.leer_json("./data/tematicas.json");
}

leer_json(ruta){
Expand Down Expand Up @@ -49,13 +49,5 @@ class GeneratorChooser{
return new Promise(resolve => setTimeout(resolve, ms));
}
}
// var gen = new GeneratorChooser();
// gen.loadGenerators()
// .then(() => {
// console.log("Generators loaded successfully!");
// })
// .catch((error) => {
// console.error("Error al cargar los generadores de preguntas:", error);
// });

module.exports = GeneratorChooser;

0 comments on commit 054c082

Please sign in to comment.