Fix typos
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
parent
7aeae76c6c
commit
aedc23e98c
1 changed files with 6 additions and 6 deletions
|
|
@ -155,13 +155,13 @@ def qbullets_category(sections):
|
||||||
if re.match(pro, sec) and not not_bullet(sec):
|
if re.match(pro, sec) and not not_bullet(sec):
|
||||||
hits[i] += 1
|
hits[i] += 1
|
||||||
break
|
break
|
||||||
maxium = 0
|
maximum = 0
|
||||||
res = -1
|
res = -1
|
||||||
for i, h in enumerate(hits):
|
for i, h in enumerate(hits):
|
||||||
if h <= maxium:
|
if h <= maximum:
|
||||||
continue
|
continue
|
||||||
res = i
|
res = i
|
||||||
maxium = h
|
maximum = h
|
||||||
return res, QUESTION_PATTERN[res]
|
return res, QUESTION_PATTERN[res]
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -222,13 +222,13 @@ def bullets_category(sections):
|
||||||
if re.match(p, sec) and not not_bullet(sec):
|
if re.match(p, sec) and not not_bullet(sec):
|
||||||
hits[i] += 1
|
hits[i] += 1
|
||||||
break
|
break
|
||||||
maxium = 0
|
maximum = 0
|
||||||
res = -1
|
res = -1
|
||||||
for i, h in enumerate(hits):
|
for i, h in enumerate(hits):
|
||||||
if h <= maxium:
|
if h <= maximum:
|
||||||
continue
|
continue
|
||||||
res = i
|
res = i
|
||||||
maxium = h
|
maximum = h
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue