As long as we're throwing warning we will see when we mess up, I think
we're in good shape for a few manual fixes. For example, a page that finds
all the Events that have "" as their type will let us fast-fix.


On Mon, Jun 24, 2013 at 10:14 PM, Eugene Fang <notifications@github.com>wrote:

> In helpers/event_helper.py:
>
> > +      elif 'offseason' in event_type_str:
> > +        return Event.OFFSEASON
> > +
> > +      # Districts have multiple names
> > +      if ('district' in event_type_str) or ('state' in event_type_str)\
> > +        or ('region' in event_type_str) or ('qualif' in event_type_str):
> > +        if 'championship' in event_type_str:
> > +          return Event.DISTRICT_CMP
> > +        else:
> > +          return Event.DISTRICT
> > +
> > +      # Everything else should be a Championship event
> > +      if 'division' in event_type_str:
> > +        return Event.CMP_DIVISION
> > +      else:
> > +        return Event.CMP_FINALS
>
> I guess we could check to make sure "champ" is in the name? Not sure what
> we can and can't expect FIRST to name the event types...
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/gregmarra/the-blue-alliance/pull/655/files#r4859520>
> .
>