Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.league_key = self.extracted_data.get("league_key", "")
self.league_type = self.extracted_data.get("league_type", "")
self.league_update_timestamp = self.extracted_data.get("league_update_timestamp", "")
self.logo_url = self.extracted_data.get("logo_url", "")
self.name = self.extracted_data.get("name", "")
self.num_teams = self.extracted_data.get("num_teams", "")
self.password = self.extracted_data.get("password", "")
self.payment_deadline = self.extracted_data.get("payment_deadline", "")
self.players = self.extracted_data.get("players", [])
self.renew = self.extracted_data.get("renew", "")
self.renewed = self.extracted_data.get("renewed", "")
self.scoreboard = self.extracted_data.get("scoreboard", Scoreboard({})) # type: Scoreboard
self.matchups = self.scoreboard.matchups
self.scoring_type = self.extracted_data.get("scoring_type", "")
self.season = self.extracted_data.get("season", "")
self.settings = self.extracted_data.get("settings", Settings({})) # type: Settings
self.short_invitation_url = self.extracted_data.get("short_invitation_url", "")
self.standings = self.extracted_data.get("standings", Standings({})) # type: Standings
self.teams_ordered_by_standings = self.standings.teams
self.start_date = self.extracted_data.get("start_date", "")
self.start_week = self.extracted_data.get("start_week", "")
self.transactions = self.extracted_data.get("transactions", "")
self.url = self.extracted_data.get("url", "")
self.weekly_deadline = self.extracted_data.get("weekly_deadline", "")
"trade_ratify_type": "yahoo",
"trade_reject_time": "2",
"uses_faab": "0",
"uses_fractional_points": "1",
"uses_lock_eliminated_teams": 1,
"uses_negative_points": "1",
"uses_playoff": "1",
"uses_playoff_reseeding": 0,
"waiver_rule": "gametime",
"waiver_time": "2",
"waiver_type": "R"
}
"""
return self.query(
"https://fantasysports.yahooapis.com/fantasy/v2/league/" + self.get_league_key() + "/settings",
["league", "settings"], Settings)