From 9c57078cadf0caaa8c9c6608abf0a46cbd445d83 Mon Sep 17 00:00:00 2001 From: CCP Zoetrope Date: Wed, 25 Jul 2018 13:51:25 +0000 Subject: [PATCH 1/3] Add NotificationTypeEnumV3 with two newer notification types --- eve_glue/notification_type.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eve_glue/notification_type.py b/eve_glue/notification_type.py index 551bd10..4b65981 100644 --- a/eve_glue/notification_type.py +++ b/eve_glue/notification_type.py @@ -199,3 +199,12 @@ class NotificationTypeEnum(enum.Enum): "StructureItemsMovedToSafety": 190, }, ) + +NotificationTypeEnumV3 = new_from_enum( # pylint: disable=invalid-name + "NotificationTypeEnumV3", + NotificationTypeEnumV2, + add={ + "StructuresJobsPaused": 210, + "StructuresJobsCancelled": 211, + } +) From f2f41da03acd7d64443ddceef4bb4f2c0e4406ce Mon Sep 17 00:00:00 2001 From: CCP Zoetrope Date: Wed, 25 Jul 2018 14:20:01 +0000 Subject: [PATCH 2/3] Fix pylint error --- eve_glue/location_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eve_glue/location_type.py b/eve_glue/location_type.py index ecfb016..3aeb4bb 100644 --- a/eve_glue/location_type.py +++ b/eve_glue/location_type.py @@ -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" From 8065543c9789a9ba4e52f816a49241fe95c7dc5e Mon Sep 17 00:00:00 2001 From: a-tal Date: Thu, 26 Jul 2018 07:48:19 -0700 Subject: [PATCH 3/3] [lint] ocd whitespace --- eve_glue/notification_type.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eve_glue/notification_type.py b/eve_glue/notification_type.py index 4b65981..b4732df 100644 --- a/eve_glue/notification_type.py +++ b/eve_glue/notification_type.py @@ -200,6 +200,7 @@ class NotificationTypeEnum(enum.Enum): }, ) + NotificationTypeEnumV3 = new_from_enum( # pylint: disable=invalid-name "NotificationTypeEnumV3", NotificationTypeEnumV2,