25 lines
769 B
Python
25 lines
769 B
Python
import os
|
|
|
|
class Config:
|
|
# App version
|
|
VERSION = '1.2.0'
|
|
|
|
SECRET_KEY = os.environ.get('SECRET_KEY') or 'dev-secret-key'
|
|
|
|
# API settings
|
|
SLEEPER_BASE_URL = 'https://api.sleeper.app/v1'
|
|
ESPN_BASE_URL = 'https://site.api.espn.com/apis/site/v2/sports/football/nfl'
|
|
|
|
# League colors - assigned in order
|
|
LEAGUE_COLORS = [
|
|
'#003594', '#ffa300', '#8a2be2', '#ff69b4', '#40e0d0', '#dda0dd'
|
|
]
|
|
|
|
# Team abbreviation mapping - ESPN to Sleeper
|
|
# Some teams have different abbreviations between APIs
|
|
TEAM_ABBREVIATION_MAP = {
|
|
'WSH': 'WAS', # Washington
|
|
'LV': 'LV', # Las Vegas (same)
|
|
'LAR': 'LAR', # Los Angeles Rams (same)
|
|
'LAC': 'LAC', # Los Angeles Chargers (same)
|
|
}
|