Permalink
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (49 sloc) 1.13 KB
class EventType(object):
REGIONAL = 0
DISTRICT = 1
DISTRICT_CMP = 2
CMP_DIVISION = 3
CMP_FINALS = 4
OFFSEASON = 99
PRESEASON = 100
UNLABLED = -1
type_names = {
REGIONAL: 'Regional',
DISTRICT: 'District',
DISTRICT_CMP: 'District Championship',
CMP_DIVISION: 'Championship Division',
CMP_FINALS: 'Championship Finals',
OFFSEASON: 'Offseason',
PRESEASON: 'Preseason',
UNLABLED: '--',
}
short_type_names = {
REGIONAL: 'Regional',
DISTRICT: 'District',
DISTRICT_CMP: 'District Championship',
CMP_DIVISION: 'Division',
CMP_FINALS: 'Championship',
OFFSEASON: 'Offseason',
PRESEASON: 'Preseason',
UNLABLED: '--',
}
DISTRICT_EVENT_TYPES = {
DISTRICT,
DISTRICT_CMP,
}
NON_CMP_EVENT_TYPES = {
REGIONAL,
DISTRICT,
DISTRICT_CMP,
}
CMP_EVENT_TYPES = {
CMP_DIVISION,
CMP_FINALS,
}
SEASON_EVENT_TYPES = {
REGIONAL,
DISTRICT,
DISTRICT_CMP,
CMP_DIVISION,
CMP_FINALS,
}