Skip to content

Commit

Permalink
Fix: Solved the string of the questions (copypaste bad ☹)
Browse files Browse the repository at this point in the history
  • Loading branch information
UO283615 committed Apr 28, 2024
1 parent 1d7617a commit fe37443
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,14 @@ public void processResults() {
Answer a = new Answer(publishDateLabel, AnswerCategory.GAMES_RELEASE, langCode);
answers.add(a);

String questionString = "";

if (langCode.equals("es"))
questions.add(new Question(a, "¿Qué compañía publicó " + videoGameLabel + "?", QuestionCategory.VIDEOGAMES, QuestionType.TEXT));
questionString = spanishStringsIni[i%4] + videoGameLabel + spanishStringsFin[i%4];
else
questions.add(new Question(a, "Who published " + videoGameLabel + "?", QuestionCategory.VIDEOGAMES, QuestionType.TEXT));
questionString = englishStringsIni[i%4] + videoGameLabel + englishStringsFin[i%4];

questions.add(new Question(a, questionString, QuestionCategory.VIDEOGAMES, QuestionType.TEXT));
}

repository.saveAll(new ArrayList<>(answers));
Expand Down

0 comments on commit fe37443

Please sign in to comment.