diff --git a/questionservice/question-service.js b/questionservice/question-service.js index 60998ab1..d14a3f65 100644 --- a/questionservice/question-service.js +++ b/questionservice/question-service.js @@ -69,7 +69,7 @@ app.post("/questions", async (req, res) => { const tematicasValidas = temas.length !== 0 ? temas - : ["paises", "literatura", "cine", "arte", "programacion"]; + : ["paises", "literatura", "cine", "arte", "programacion", "futbolistas", "clubes", "baloncestistas", "politica", "videojuegos"]; const cantidadPreguntas = parseInt(n, 10); const data = gen.getQuestionsPost(tematicasValidas, cantidadPreguntas, locale); res.json(data); diff --git a/questionservice/questionGen/GenericGenerator.js b/questionservice/questionGen/GenericGenerator.js index bb1a4250..b92499c9 100644 --- a/questionservice/questionGen/GenericGenerator.js +++ b/questionservice/questionGen/GenericGenerator.js @@ -73,8 +73,7 @@ class GenericGenerator { } LIMIT 10000 `; - - console.log(sparqlQuery); + const url = `https://query.wikidata.org/sparql?query=${encodeURIComponent( sparqlQuery )}&format=json`; diff --git a/webapp/src/index.js b/webapp/src/index.js index 9e56989d..405d7f6d 100644 --- a/webapp/src/index.js +++ b/webapp/src/index.js @@ -13,7 +13,7 @@ const root = ReactDOM.createRoot(r); localStorage.setItem( "selectedThemes", - JSON.stringify(["paises", "literatura", "cine", "arte", "programacion"]) + JSON.stringify(["paises", "literatura", "cine", "arte", "programacion", "futbolistas", "clubes", "baloncestistas", "politica", "videojuegos"]) ); localStorage.setItem("clasicoTime", 10); localStorage.setItem("clasicoPreguntas", 10); diff --git a/webapp/src/locales/en.json b/webapp/src/locales/en.json index f609cabe..0cf88c18 100644 --- a/webapp/src/locales/en.json +++ b/webapp/src/locales/en.json @@ -98,6 +98,11 @@ "cinema": "Cinema", "art": "Art", "programming": "Programming", + "futbolistas": "Football players", + "clubes": "Footbal clubs", + "baloncestistas": "Basketball players", + "politica": "Politics", + "videojuegos": "Videogames", "save": "Apply Changes", "timeBetweenClassic": "Time Between Questions (Classic)", "questionCountClassic": "Number of Questions (Classic)", diff --git a/webapp/src/locales/es.json b/webapp/src/locales/es.json index 77ef1f57..df2ec035 100644 --- a/webapp/src/locales/es.json +++ b/webapp/src/locales/es.json @@ -98,6 +98,11 @@ "cinema": "Cine", "art": "Arte", "programming": "Programación", + "futbolistas": "Futbolistas", + "clubes": "Clubes de fútbol", + "baloncestistas": "Jugadores de baloncesto", + "politica": "Política", + "videojuegos": "Videojuegos", "save": "Aplicar cambios", "timeBetweenClassic": "Tiempo entre preguntas (Clásico)", "questionCountClassic": "Número de preguntas (Clásico)", diff --git a/webapp/src/pages/Config/Config.js b/webapp/src/pages/Config/Config.js index f8197f00..a272c274 100644 --- a/webapp/src/pages/Config/Config.js +++ b/webapp/src/pages/Config/Config.js @@ -118,6 +118,21 @@ const Config = () => { {t('pages.config.programming')} + + {t('pages.config.futbolistas')} + + + {t('pages.config.clubes')} + + + {t('pages.config.baloncestistas')} + + + {t('pages.config.politica')} + + + {t('pages.config.videojuegos')} +