Change enum from 0 to 1 according to the documentation

see [here](https://docs.python.org/3/library/enum.html#functional-api)
This commit is contained in:
Matthias 2018-12-25 14:05:40 +01:00
parent a7db4d74cb
commit fed3ebfb46

View File

@ -3,13 +3,13 @@
"""
Bot state constant
"""
import enum
from enum import Enum
class State(enum.Enum):
class State(Enum):
"""
Bot application states
"""
RUNNING = 0
STOPPED = 1
RELOAD_CONF = 2
RUNNING = 1
STOPPED = 2
RELOAD_CONF = 3