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

[Bug] Issue building a sleeper report #136

Closed Electronickss closed 3 years ago

Electronickss commented 3 years ago

Description of Issue

While building a report for a sleeper league, it failed with an index error

Additional Information as Applicable

2020-11-25 13:15:40,896 - report.builder - INFO - ...setup complete for "BALL DON’T LIE " (635788553665720320) week 11 report.

Traceback (most recent call last):
  File "main.py", line 286, in <module>
    report_pdf = report.create_pdf_report()
  File "C:\Users\nick\git_projects\fantasy-football-metrics-weekly-report\report\builder.py", line 199, in create_pdf_report
    report_data = ReportData(
  File "C:\Users\nick\git_projects\fantasy-football-metrics-weekly-report\report\data.py", line 222, in __init__
    [list(group) for key, group in itertools.groupby(self.data_for_scores, lambda x: x[3])][0])
IndexError: list index out of range

Fantasy Football Platform

Sleeper

League ID

635788553665720320

Operating System

Windows

Other

Im still using the virtualenv method

Electronickss commented 3 years ago

My friend sent me the wrong ID. Nvm