Skip to content

Commit

Permalink
DBC22-1678: added missed event sub type for road conditions
Browse files Browse the repository at this point in the history
DBC22-1678: added missed event sub type for road conditions
  • Loading branch information
bcgov-brwang authored and ray-oxd committed Feb 7, 2024
1 parent 9ee9b9e commit a0cb52d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/backend/apps/event/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ class EVENT_SUB_TYPE:
PARTLY_SNOW_PACKED = "PARTLY_SNOW_PACKED"
MUD = "MUD"
PLANNED_EVENT = "PLANNED_EVENT"
POOR_VISIBILITY = "POOR_VISIBILITY"
POOR_VISIBILITY = "POOR_VISIBILITY"
PARTLY_SNOW_COVERED = "PARTLY_SNOW_COVERED"
DRIFTING_SNOW = "DRIFTING_SNOW"
PASSABLE_WITH_CARE = "PASSABLE_WITH_CARE"



EVENT_SUB_TYPE_CHOICES = (
Expand Down Expand Up @@ -132,4 +136,8 @@ class EVENT_DISPLAY_CATEGORY:
EVENT_SUB_TYPE.ICE_COVERED: EVENT_DISPLAY_CATEGORY.ROAD_CONDITION,
EVENT_SUB_TYPE.SNOW_PACKED: EVENT_DISPLAY_CATEGORY.ROAD_CONDITION,
EVENT_SUB_TYPE.PARTLY_SNOW_PACKED: EVENT_DISPLAY_CATEGORY.ROAD_CONDITION,
EVENT_SUB_TYPE.PARTLY_SNOW_COVERED: EVENT_DISPLAY_CATEGORY.ROAD_CONDITION,
EVENT_SUB_TYPE.DRIFTING_SNOW: EVENT_DISPLAY_CATEGORY.ROAD_CONDITION,
EVENT_SUB_TYPE.ALMOST_IMPASSABLE: EVENT_DISPLAY_CATEGORY.ROAD_CONDITION,
EVENT_SUB_TYPE.PASSABLE_WITH_CARE: EVENT_DISPLAY_CATEGORY.ROAD_CONDITION,
}

0 comments on commit a0cb52d

Please sign in to comment.