diff --git a/s8.py b/s8.py index 7be379d..933111a 100644 --- a/s8.py +++ b/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