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
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
Description of Issue
While building a report for a sleeper league, it failed with an index error
Additional Information as Applicable
Fantasy Football Platform
Sleeper
League ID
635788553665720320
Operating System
Windows
Other
Im still using the virtualenv method