def create(username):
     password = password_reader.password(username,
                                         Path.cwd() / "config/passwords")
     configs = team_reader.all_teams(Path.cwd() /
                                     "config/team_configs/baseball")
     notifier = notifier_config.current_notifier(username)
     return NotifyNewTrades(username, password, configs, notifier)
Exemple #2
0
 def create(username):
     password = password_reader.password(username,
                                         Path.cwd() / "config/passwords")
     configs = team_reader.all_teams(Path.cwd() /
                                     "config/team_configs/baseball")
     notifier = notifier_config.current_notifier(username)
     return SetLineup(username, password, configs, notifier, FangraphsApi())
 def create(username):
     password = password_reader.password(username,
                                         Path.cwd() / "config/passwords")
     configs = team_reader.all_teams(Path.cwd() /
                                     "config/team_configs/football")
     scoring_period = (FootballApi.Builder().username(username).password(
         password).league_id(configs[0].league_id).team_id(
             configs[0].team_id).build().scoring_period() - 1)
     return ArchiveDailyStats(username, password, configs, scoring_period)
 def create(username):
     password = password_reader.password(username, Path.cwd() / "config/passwords")
     configs = team_reader.all_teams(Path.cwd() / "config/team_configs/basketball")
     notifier = notifier_config.current_notifier(username)
     return SetFbaLineup(username, password, configs, notifier, FantasySPApi(), NumberFireApi())