DimaKudosh / pydfs-lineup-optimizer

Daily Fantasy Sports lineup optimzer for all popular daily fantasy sports sites
MIT License
409 stars 155 forks source link

College Football not working? #313

Open Uncle6Pack opened 2 years ago

Uncle6Pack commented 2 years ago

optimizer = get_optimizer(Site.DRAFTKINGS, Sport=CollegeFootball)

I've also tried College_Football, CFB, college_football, and COLLEGE_FOOTBALL


NameError Traceback (most recent call last)

in () ----> 1 optimizer = get_optimizer(Site.DRAFTKINGS, Sport=CollegeFootball) NameError: name 'CollegeFootball' is not defined
Uncle6Pack commented 2 years ago

Okay, realized I was using = and that was an issue..

Update to the following and get a new error...

optimizer = get_optimizer(Site.DRAFTKINGS, Sport.COLLEGE_FOOTBALL)

KeyError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/pydfs_lineup_optimizer/sites/sites_registry.py in get_settings(cls, site, sport) 16 try: ---> 17 return cls.SETTINGS_MAPPING[site][sport] 18 except KeyError:

KeyError: 'COLLEGE_FOOTBALL'

During handling of the above exception, another exception occurred:

NotImplementedError Traceback (most recent call last) 2 frames /usr/local/lib/python3.7/dist-packages/pydfs_lineup_optimizer/sites/sites_registry.py in get_settings(cls, site, sport) 17 return cls.SETTINGS_MAPPING[site][sport] 18 except KeyError: ---> 19 raise NotImplementedError

NotImplementedError: