Fixed debug messages?

This commit is contained in:
Kevin Rode 2021-01-04 22:32:41 -05:00
parent ad85e92511
commit 14e4b5db6f
2 changed files with 2 additions and 2 deletions

View File

@ -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}%"),)) 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() team_json_strings = c.fetchall()
conn.close() conn.close()
print('worked') return team_json_strings
print(team_json_strings)
conn.close() conn.close()
return None return None

View File

@ -865,6 +865,7 @@ def get_history():
def search_team(search_term): def search_team(search_term):
teams = [] teams = []
for team_pickle in db.search_teams(search_term): for team_pickle in db.search_teams(search_term):
print(team_pickle)
team_json = jsonpickle.decode(team_pickle[0], keys=True, classes=team) team_json = jsonpickle.decode(team_pickle[0], keys=True, classes=team)
try: try:
if team_json.pitcher is not None: if team_json.pitcher is not None: