Cannot get MatchData attribute "teams"
retzugil opened this issue · comments
I'm attempting to grab TeamData
from a match using the following on cassiopeia 5.0.1
installed via pip:
import cassiopeia as cass
cass.set_riot_api_key(KEY_HERE)
summoner = cass.get_summoner(name="FromIron", region="NA")
mh = cass.get_match_history(continent=summoner.region.continent, puuid=summoner.puuid)
mh[0].teams
I was expecting the output to be an array of size 2 containing TeamData like:
[<cassiopeia.core.match.Team object at 0x1077193a0>, <cassiopeia.core.match.Team object at 0x107719130>]
But instead I'm receiving an empty array:
[]
This might be caused by a lazy loading issue at:
cassiopeia/cassiopeia/core/match.py
Lines 2029 to 2036 in 32c25b3
which might have to get loaded like this prior to access:
cassiopeia/cassiopeia/core/match.py
Lines 2012 to 2017 in 32c25b3