From f9b3b1dcc5eeab48f0382a9d2b44ec78ca2b8797 Mon Sep 17 00:00:00 2001 From: sipp11 Date: Fri, 1 Aug 2014 06:25:52 +0700 Subject: [PATCH] [s8] bug fix -- get rid of asterik --- s8.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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