From fdfea1a273ecaf80fda72e7f41a5f8aa929e15bf Mon Sep 17 00:00:00 2001 From: Sakimori Date: Tue, 23 Feb 2021 22:39:28 -0500 Subject: [PATCH] *really* fixed #202 --- database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database.py b/database.py index 5c333a3..fe563f5 100644 --- a/database.py +++ b/database.py @@ -320,9 +320,10 @@ def get_all_team_names(): conn.close() return None -def get_filtered_teams(filter_list): +def get_filtered_teams(i_filter_list): teams_list = get_all_team_names() out_list = [] + filter_list = [re.sub('[^A-Za-z0-9 %]+', '', filter_team) for filter_team in i_filter_list] for team in teams_list: if re.sub('[^A-Za-z0-9 %]+', '', team) not in filter_list: out_list.append(team)