Browse Source

[s8] bug fix -- get rid of asterik

master
sipp11 11 years ago
parent
commit
f9b3b1dcc5
  1. 5
      s8.py

5
s8.py

@ -51,9 +51,10 @@ def get_ro_data(m, suffix):
def get_similarity_count(l, r):
cnt = 0
for (x, y) in COMPARSION_PAIR:
if l[x] == r[y]:
r_value = r[y].replace('*', '')
if l[x] == r_value:
cnt += 1
elif r[y] == 'Y/N' and l[x] in ('Y', 'N'):
elif r_value == 'Y/N' and l[x] in ('Y', 'N'):
cnt += 1
return cnt

Loading…
Cancel
Save