Skip to content

Fix non-regional/district/dcmp competition weeks and sorting #3

@democat3457

Description

@democat3457

Current Behavior
Non-regional/district/dcmp competitions, or just "special events," are given a value of Week 1 and sorted at the beginning of the team event list, even when the competition may not have occurred during Week 1.

Cause
Special events get the week deserialized into the int default value of 0 when the week key actually returns null. Also, the code doesn't check for event_type or event_type_string, which will also allow checks on the type of the event to determine whether week value should be ignored.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions