Skip to content

Problem w/ CLI dump matchups #22

Answered by mattdodge
Ace7866 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

from yahoofantasy import Context
ctx = Context()
leagues = ctx.get_leagues('mlb', 2016)
for league in l…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Ace7866
Comment options

@Ace7866
Comment options

@mattdodge
Comment options

@Ace7866
Comment options

Answer selected by Ace7866
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants