From 054c08281b2e39efc396dc92da6aedcfcf227c16 Mon Sep 17 00:00:00 2001 From: CANCI0 Date: Tue, 20 Feb 2024 17:09:32 +0100 Subject: [PATCH] Cambios menores --- questions/data/tematicas.json | 4 ++-- questions/questionGen/GeneratorChooser.js | 10 +--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/questions/data/tematicas.json b/questions/data/tematicas.json index d1eb8071..daa5ca22 100644 --- a/questions/data/tematicas.json +++ b/questions/data/tematicas.json @@ -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 " ] diff --git a/questions/questionGen/GeneratorChooser.js b/questions/questionGen/GeneratorChooser.js index f012484c..b2ccd5bc 100644 --- a/questions/questionGen/GeneratorChooser.js +++ b/questions/questionGen/GeneratorChooser.js @@ -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){ @@ -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; \ No newline at end of file