@@ -88,6 +88,7 @@ class GameType(ObjectType):
8888 - `time`: The time of the game. (optional)
8989 - `box_score`: The box score of the game.
9090 - `score_breakdown`: The score breakdown of the game.
91+ - `ticket_link`: The ticket link of the game. (optional)
9192 """
9293
9394 id = String (required = False )
@@ -104,11 +105,11 @@ class GameType(ObjectType):
104105 score_breakdown = List (List (String ), required = False )
105106 team = Field (TeamType , required = False )
106107 utc_date = String (required = False )
107-
108+ ticket_link = String ( required = False )
108109 def __init__ (
109- self , id , city , date , gender , location , opponent_id , result , sport , state , time , box_score = None , score_breakdown = None , utc_date = None
110+ self , id , city , date , gender , location , opponent_id , result , sport , state , time , box_score = None , score_breakdown = None , utc_date = None , ticket_link = None
110111 ):
111- self .id = id
112+ self .id = id
112113 self .city = city
113114 self .date = date
114115 self .gender = gender
@@ -121,7 +122,7 @@ def __init__(
121122 self .box_score = box_score
122123 self .score_breakdown = score_breakdown
123124 self .utc_date = utc_date
124-
125+ self . ticket_link = ticket_link
125126 @staticmethod
126127 def team_to_team_type (team_obj ):
127128 if team_obj is None :
@@ -138,7 +139,7 @@ def resolve_team(parent, info):
138139 # getting team id - team could be None in older data
139140 team_id = parent .team if parent .team is not None else parent .opponent_id
140141 if team_id and isinstance (team_id , str ):
141- # promise to get team object once the dataloader is ready
142+ # promise to get team object once the dataloader is ready
142143 promise = info .context ["team_loader" ].load (team_id )
143144 return promise .then (GameType .team_to_team_type )
144145 return None
0 commit comments