Closed zap-wizard closed 4 years ago
this is great work. Can you make sure that this works with quizzes with emojis in the name? That was the main reason I added the similarity checking. After we confirm that works, I will merge.
It does not work when there are emojis in the name, because all emojis are removed from the name that will be searched, so there's no exact match. But why are the emojis removed from the name? If I skip this line of code
name = self._remove_emojis(name.replace("\\'", "'"))
in searchQuiz
, everything works fine. Even if the name contains many weird emojis, no problems.
in the past I had some issue comparing emoji-based titles. Guess that is no longer an issue :shrug:
searchQuiz
checks if quiz has same amount of questions and choices in each question than the quiz that is being played. I also removed the similarity checking functionality of the name, because as far as I know the name should always be correct... (?)Some code styling changes.
Replace underscore with a space from log. Ex:
START QUIZ
instead ofSTART_QUIZ