From f4b3d7c90eaad43ea09c1fbba24cf70857865a93 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 22 May 2021 13:16:21 +0700 Subject: [PATCH] fix diff - / chars switch --- src/id_fix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/id_fix.py b/src/id_fix.py index 83e47a0..1d81cba 100644 --- a/src/id_fix.py +++ b/src/id_fix.py @@ -75,13 +75,13 @@ class MovieNameFix(): diff = [] for num, value in enumerate(str1): try: - if value not in (str2[num], '-'): + if value not in (str2[num], '/'): diff.append(value) except IndexError: diff.append(value) for num, value in enumerate(str2): try: - if value not in (str1[num], '/'): + if value not in (str1[num], '-'): diff.append(value) except IndexError: diff.append(value)