-
Hi guys - I'm noticing an issue with the CLI dump command for the matchups. The command seems unable to change the season and all of my dumps are pulling data from 2018 regardless of which season I designate with the '-s 2016' command. I've also tried with the more general 'yahoofantasy dump matchups' and then designating a different season that way. No matter which method I try, or what year/season I designate, I get the same results each time - the matchups from the 2018 season. Could anyone else try this to see if they can replicate the issue? Wondering if I'm doing something wrong? Or maybe a problem with my league itself? Any tips on how to troubleshoot would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I can't think of why it would be defaulting to 2018, that seems weird. The CLI is a bit finicky in that you have to specify the season after the That being said, I just dumped my 2016 MLB matchups no problem with this command There's not really a debug mode on the CLI unfortunately, but you can try firing up the league context manually and seeing what leagues it is returning: from yahoofantasy import Context
ctx = Context()
leagues = ctx.get_leagues('mlb', 2016)
for league in leagues:
print(league.id, league.name) Make sure those league names and IDs look correct. |
Beta Was this translation helpful? Give feedback.
I can't think of why it would be defaulting to 2018, that seems weird. The CLI is a bit finicky in that you have to specify the season after the
dump
command but before the type (matchups
), maybe that's part of the issue? Entering it when prompted should fix that though.That being said, I just dumped my 2016 MLB matchups no problem with this command
yahoofantasy dump -s 2016 matchups
. What game (MLB?) are you trying to dump matchups for?There's not really a debug mode on the CLI unfortunately, but you can try firing up the league context manually and seeing what leagues it is returning: