From e45f4d1d91f6a1b4e383670103fb9751de244ed6 Mon Sep 17 00:00:00 2001 From: rootcoma Date: Mon, 18 Nov 2013 11:39:20 -0800 Subject: [PATCH] order of opperations on lowercasing after normalizing --- plugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 5db07b0..25fa356 100644 --- a/plugin.py +++ b/plugin.py @@ -886,14 +886,16 @@ class TriviaTime(callbacks.Plugin): # was a correct answer guessed? for ans in self.alternativeAnswers: - normalizedAns = self.removeAccents(str.lower(ans)) + normalizedAns = self.removeAccents(ans) normalizedAns = self.removeExtraSpaces(normalizedAns) + normalizedAns = str.lower(normalizedAns) if normalizedAns == attempt and normalizedAns not in self.guessedAnswers: correctAnswerFound = True correctAnswer = ans for ans in self.answers: - normalizedAns = self.removeAccents(str.lower(ans)) + normalizedAns = self.removeAccents(ans) normalizedAns = self.removeExtraSpaces(normalizedAns) + normalizedAns = str.lower(normalizedAns) if normalizedAns == attempt and normalizedAns not in self.guessedAnswers: correctAnswerFound = True correctAnswer = ans