fix runs_for runs_against bug in instagen
add instagen tests
This commit is contained in:
@@ -63,8 +63,8 @@ def get_matchup_image(request, team_id, event_id, dimensions=None, background=No
|
||||
formatted_results = ts_event["formatted_results"]
|
||||
if formatted_results:
|
||||
# L 4-3
|
||||
runs_for = formatted_results.split(" ")[1].split("-")[0]
|
||||
runs_against = formatted_results.split(" ")[1].split("-")[1]
|
||||
runs_for = int(formatted_results.split(" ")[1].split("-")[0])
|
||||
runs_against = int(formatted_results.split(" ")[1].split("-")[1])
|
||||
else:
|
||||
runs_for, runs_against = None, None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user