Fixed debug messages?
This commit is contained in:
parent
ad85e92511
commit
14e4b5db6f
|
@ -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
|
||||||
|
|
1
games.py
1
games.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user