uberfastman / fantasy-football-metrics-weekly-report

Command line application to create weekly reports (containing stats, metrics, and rankings) for Fantasy Football leagues on the following platforms: Yahoo, ESPN, CBS, Sleeper, Fleaflicker
GNU General Public License v3.0
199 stars 49 forks source link

Issue Generating a Report #132

Closed qtpi69 closed 3 years ago

qtpi69 commented 3 years ago

Description of Issue

This works fine for another league of mine that has only offensive players One league has IDPs including DL, LB, DE, and IDP Flex. When I try to run this for that league I get this error: ValueError: Player position missing! Check data!

And then the report is not created. Is there any way to fix this so that IDP can be included?

Side note: This is amazing! Thank you for making it :) Would be great if you could please help fix this problem!

Additional Information as Applicable

Fantasy Football Platform

Sleeper

Operating System

macOS

Other

Any other setup/environment/configuration information you might deem potentially relevant.

uberfastman commented 3 years ago

@qtpi69 I'm fairly certain it's breaking because I wasn't including the "DE" position... could you share your Sleeper league ID so I can test?

uberfastman commented 3 years ago

@qtpi69 I fixed the issue! Turns out it has nothing to do with DE (Sleeper actually doesn't even have DE, just DB, DL, and LB, but instead it happened when a player with multiple eligible positions (such as an IDP being eligible for both DB and LB for instance) was being started in a slot that was not their primary position.

Anyway, if you pull the latest from the main branch, you should have the fix!

qtpi69 commented 3 years ago

Thank you!