From b59fe087c991867c0a430bb0b8e39e7d2a213748 Mon Sep 17 00:00:00 2001 From: jorge Date: Thu, 18 Apr 2024 14:50:11 +0200 Subject: [PATCH] Aumented the number of entites generated to reduce the number of errors --- .../src/main/java/questionGenerator/QuestionGenerator.java | 2 +- .../questionGenerator/generator/AbstractAnswersAreEntites.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/questionGenerator/src/main/java/questionGenerator/QuestionGenerator.java b/questionGenerator/src/main/java/questionGenerator/QuestionGenerator.java index 01f92f15..66791f58 100644 --- a/questionGenerator/src/main/java/questionGenerator/QuestionGenerator.java +++ b/questionGenerator/src/main/java/questionGenerator/QuestionGenerator.java @@ -31,7 +31,7 @@ public List generateQuestions(QuestionType type, int amount){ List questions = new ArrayList<>(); List entites = new ArrayList<>(); try { - entites = EntityGenerator.getEntities(type, 100, generator.getPropertyId()); + entites = EntityGenerator.getEntities(type, 1000, generator.getPropertyId()); } catch (IOException e) { e.printStackTrace(); } diff --git a/questionGenerator/src/main/java/questionGenerator/generator/AbstractAnswersAreEntites.java b/questionGenerator/src/main/java/questionGenerator/generator/AbstractAnswersAreEntites.java index 5f68ed44..87cdebcb 100644 --- a/questionGenerator/src/main/java/questionGenerator/generator/AbstractAnswersAreEntites.java +++ b/questionGenerator/src/main/java/questionGenerator/generator/AbstractAnswersAreEntites.java @@ -46,7 +46,7 @@ private String getAnswer(String id) throws Exception{ public List getWrongAnswers(String rightAnswer) throws Exception { List entites = new ArrayList<>(); try { - entites = EntityGenerator.getEntities(type, 100, getPropertyId()); + entites = EntityGenerator.getEntities(type, 1000, getPropertyId()); } catch (IOException e) { e.printStackTrace(); }