Skip to content

Commit 4a42946

Browse files
committed
answer check view modify
1 parent e0916ed commit 4a42946

File tree

3 files changed

+1
-0
lines changed

3 files changed

+1
-0
lines changed
25.7 KB
Loading
37.4 KB
Loading

quiz/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class Meta:
2222
def check_ans(self,answer,question):
2323
string = question[0].answer.lower()
2424
answer = answer.lower()
25+
answer=answer.replace(" ","")
2526
answers=string.split(",")
2627
for ans in answers:
2728
if answer==ans:

0 commit comments

Comments
 (0)