Jon Solow
Add everything from yfdashboard
dd64f21
raw
history blame
827 Bytes
from dataclasses import dataclass
from typing import List
from domain import conferences
@dataclass
class NFLDivision:
name: str
conference: conferences.NFLConference
def __post_init__(self):
ALL_DIVISIONS.append(self)
ALL_DIVISIONS: List[NFLDivision] = []
NFCWest = NFLDivision(name="NFC West", conference=conferences.NFC)
NFCNorth = NFLDivision(name="NFC North", conference=conferences.NFC)
NFCSouth = NFLDivision(name="NFC South", conference=conferences.NFC)
NFCEast = NFLDivision(name="NFC East", conference=conferences.NFC)
AFCWest = NFLDivision(name="AFC West", conference=conferences.AFC)
AFCNorth = NFLDivision(name="AFC North", conference=conferences.AFC)
AFCSouth = NFLDivision(name="AFC South", conference=conferences.AFC)
AFCEast = NFLDivision(name="AFC East", conference=conferences.AFC)