Fixing it for real this time

This commit is contained in:
Russell 2019-06-14 13:36:14 -04:00
parent 4ba577b243
commit a911d0e01b
3 changed files with 6 additions and 6 deletions

View File

@ -1 +1 @@
70
73

View File

@ -1,4 +1,4 @@
krowbar&^%2982&^%1560516431.523981
krowbar&^%2982&^%1560533744.873656
karlen&^%498&^%1527613440
endorphant&^%809&^%1444775660
jumblesale&^%25&^%1426171214
@ -67,7 +67,7 @@ pinhook&^%8&^%1509744722
emfor&^%3&^%1509671353
k2l8m11n2&^%11&^%1510932395
sacredpixel&^%3&^%1522082931
login&^%3922&^%1560295944.042895
login&^%3925&^%1560522470.792367
kelpiebot&^%3&^%1513101957
unreal&^%4&^%1550140674.610166
kinsey&^%26&^%1520446672
@ -96,7 +96,7 @@ ralph&^%4&^%1526980620
von&^%503&^%1557219954.340999
ensis&^%1750&^%1546853217
simon&^%26&^%1527937489
benharri&^%4175&^%1560347482.168509
benharri&^%4176&^%1560525087.641036
cpb&^%3&^%1528930564
calmbit&^%167&^%1555374194.542602
wisebot&^%5652&^%1539612163
@ -147,7 +147,7 @@ diodelasses&^%19&^%1551139645.230519
asdf&^%47&^%1552038120.672267
strdg&^%2&^%1551967813.490182
kneezle&^%7&^%1552213173.813114
clarjon1&^%9&^%1553401630.706798
clarjon1&^%10&^%1560530935.588749
vantablack&^%4&^%1558130984.593398
stilbruch&^%2&^%1554903426.825374
rscham&^%6&^%1558069762.853566

View File

@ -294,7 +294,7 @@ def valid_answer(answer, guess):
# convert the guess and answer to just alphanumeric values. some
# "answers" acidentally have punctuation or other things in them
guess = re.sub(r'\W+', '', guess)
answer = re.sub(r'\w+', '', str(answer).lower())
answer = re.sub(r'\W+', '', str(answer).lower())
return (guess == answer or guess == p.number_to_words(answer))
def challenge_response(user, time, msg):