Skip to content

Commit

Permalink
Merge branch 'new_notification_types'
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tal committed Jul 26, 2018
2 parents b68b9ba + 8065543 commit d1c8ba8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eve_glue/location_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ def resolve_location_type_enum(location_type_id):

if location_type_id <= 10000:
return "solar_system"
if (location_type_id >= 60000000) and (location_type_id < 64000000):
if 60000000 <= location_type_id < 64000000:
return "station"
return "other"
10 changes: 10 additions & 0 deletions eve_glue/notification_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,13 @@ class NotificationTypeEnum(enum.Enum):
"StructureItemsMovedToSafety": 190,
},
)


NotificationTypeEnumV3 = new_from_enum( # pylint: disable=invalid-name
"NotificationTypeEnumV3",
NotificationTypeEnumV2,
add={
"StructuresJobsPaused": 210,
"StructuresJobsCancelled": 211,
}
)

0 comments on commit d1c8ba8

Please sign in to comment.