From 11b1dad78bbc52d465152ccc11f5a22e8e409617 Mon Sep 17 00:00:00 2001 From: Brosef Date: Sun, 6 Jul 2025 20:05:39 +0100 Subject: [PATCH] Changed order of upper() --- game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.py b/game.py index 0f2209f..963c6cc 100644 --- a/game.py +++ b/game.py @@ -58,14 +58,14 @@ class Captcha: # anthing below this index should appear green. def addChar(self, char, font): - self.chars.append(char.upper()) + self.chars.append(char) self.fonts.append(font) def match(self, char): if self.charIdx == len(self.chars): return True, True - matches = char.upper() == self.chars[self.charIdx] + matches = char.upper() == self.chars[self.charIdx].upper() print(f'{char.upper()} == {self.chars[self.charIdx]}') if matches: self.charIdx += 1