aboutsummaryrefslogtreecommitdiff
path: root/sgdfi/_dbs
diff options
context:
space:
mode:
authorThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2018-10-10 01:18:17 +0200
committerThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2018-10-10 01:18:17 +0200
commit0ee8d13cd31de0b7c431a0d59013f0b70d57e2e5 (patch)
treeeb7cdfce449650a00fe83e3c1de743b4381e3f8f /sgdfi/_dbs
parentf83b6eb91ef6f9be2a97fa9c59664fe98ad7a592 (diff)
Corrected event types.
Diffstat (limited to 'sgdfi/_dbs')
-rwxr-xr-xsgdfi/_dbs/__init__.py1
-rwxr-xr-x[-rw-r--r--]sgdfi/_dbs/_event.py14
2 files changed, 8 insertions, 7 deletions
diff --git a/sgdfi/_dbs/__init__.py b/sgdfi/_dbs/__init__.py
index 10f4180..a4ff203 100755
--- a/sgdfi/_dbs/__init__.py
+++ b/sgdfi/_dbs/__init__.py
@@ -9,6 +9,7 @@ from ._ops import OperationType, OperationTypeData
from ._st import StructureType, StructureTypeData
from ._ststatus import StructureStatus, StructureStatusData
from ._funcs import Function, FunctionData, FunctionRawData
+from ._event import EventType, EventTypeData
from ._regime import AllocationsRegime
diff --git a/sgdfi/_dbs/_event.py b/sgdfi/_dbs/_event.py
index 74ae749..42bc5ee 100644..100755
--- a/sgdfi/_dbs/_event.py
+++ b/sgdfi/_dbs/_event.py
@@ -40,13 +40,13 @@ class EventType(_Enum):
# - Abbreviated type name for XLS exports.
_EventTypeData = {
- EventType.DAY = ("Sortie Journée", ""),
- EventType.HALF = ("Réunion Demi-Journée", "DemJour"),
- EventType.WEEKEND = ("Week-End", "WE"),
- EventType.WORK_MEETING = ("Réunion de travail", "RéuTrav"),
- EventType.YEAR_CAMP = ("Camp Année", ""),
- EventType.CAMP = ("Camp Eté", ""),
- EventType.EXTRAJOB = ("Extrajob", ""),
+ EventType.DAY: ("Sortie Journée", ""),
+ EventType.HALF: ("Réunion Demi-Journée", "DemJour"),
+ EventType.WEEKEND: ("Week-End", "WE"),
+ EventType.WORK_MEETING: ("Réunion de travail", "RéuTrav"),
+ EventType.YEAR_CAMP: ("Camp Année", ""),
+ EventType.CAMP: ("Camp Eté", ""),
+ EventType.EXTRAJOB: ("Extrajob", ""),
}
# Make the leads.