From d04f6cb886c52c36a8b3d454855fc1f960575485 Mon Sep 17 00:00:00 2001 From: a-tal Date: Sat, 10 Mar 2018 09:54:40 -0800 Subject: [PATCH] add EventResponse and missing kvs in EVENT_OWNERS --- eve_glue/calendar.py | 36 +++++++++++++++++++++++++++ eve_glue/calendar_event_owner_type.py | 21 ---------------- 2 files changed, 36 insertions(+), 21 deletions(-) create mode 100644 eve_glue/calendar.py delete mode 100644 eve_glue/calendar_event_owner_type.py diff --git a/eve_glue/calendar.py b/eve_glue/calendar.py new file mode 100644 index 0000000..9d381f0 --- /dev/null +++ b/eve_glue/calendar.py @@ -0,0 +1,36 @@ +"""Helpers for mapping calendar event IDs to names.""" + + +import enum + + +class EventResponse(enum.Enum): + """Enum to describe the options when responding to an event invite.""" + + declined = 2 + not_responded = 3 + accepted = 4 + tentative = 5 + + +EVENT_OWNERS = { + 0: "eve_server", + 2: "corporation", + 30: "faction", + 1373: "character", + 1374: "character", + 1375: "character", + 1376: "character", + 1377: "character", + 1378: "character", + 1379: "character", + 1380: "character", + 1381: "character", + 1382: "character", + 1383: "character", + 1384: "character", + 1385: "character", + 1386: "character", + 16159: "alliance", + 34574: "character", +} diff --git a/eve_glue/calendar_event_owner_type.py b/eve_glue/calendar_event_owner_type.py deleted file mode 100644 index b01122d..0000000 --- a/eve_glue/calendar_event_owner_type.py +++ /dev/null @@ -1,21 +0,0 @@ -"""Helpers for mapping calendar event ownere type ID to owner type.""" - - -CALENDAR_EVENT_OWNER_TYPE_DICT = { - 0: "eve_server", - 2: "corporation", - 30: "faction", - 1373: "character", - 1374: "character", - 1375: "character", - 1376: "character", - 1377: "character", - 1378: "character", - 1379: "character", - 1380: "character", - 1383: "character", - 1384: "character", - 1385: "character", - 1386: "character", - 16159: "alliance" -}