diff --git a/database.py b/database.py index 5a8ea7e..4c71023 100644 --- a/database.py +++ b/database.py @@ -295,8 +295,7 @@ def search_teams(search_string): c.execute("SELECT team_json_string FROM teams WHERE name LIKE ?",(re.sub('[^A-Za-z0-9 %]+', '', f"%{search_string}%"),)) team_json_strings = c.fetchall() conn.close() - print('worked') - print(team_json_strings) + return team_json_strings conn.close() return None diff --git a/games.py b/games.py index 6262f08..400ca3f 100644 --- a/games.py +++ b/games.py @@ -865,6 +865,7 @@ def get_history(): def search_team(search_term): teams = [] for team_pickle in db.search_teams(search_term): + print(team_pickle) team_json = jsonpickle.decode(team_pickle[0], keys=True, classes=team) try: if team_json.pitcher is not None: