Make enum uppercase

This commit is contained in:
WQY\qiong
2022-10-22 11:27:08 +08:00
parent 4ba2e210d8
commit 6fa2f77a60
3 changed files with 11 additions and 11 deletions

View File

@@ -3,8 +3,8 @@ from .s0_base import *
from .s24_coordinates import *
OVERFLOW_YES = 'yes'
OVERFLOW_NO = 'no'
OVERFLOW_YES = 'YES'
OVERFLOW_NO = 'NO'
def get_tank_schema(name: str) -> dict[str, dict[str, Any]]:

View File

@@ -2,9 +2,9 @@ from .operation import *
from .s0_base import *
PIPE_STATUS_OPEN = 'open'
PIPE_STATUS_CLOSED = 'closed'
PIPE_STATUS_CV = 'cv'
PIPE_STATUS_OPEN = 'OPEN'
PIPE_STATUS_CLOSED = 'CLOSED'
PIPE_STATUS_CV = 'CV'
def get_pipe_schema(name: str) -> dict[str, dict[str, Any]]:

View File

@@ -2,12 +2,12 @@ from .operation import *
from .s0_base import *
VALVES_TYPE_PRV = 'prv'
VALVES_TYPE_PSV = 'psv'
VALVES_TYPE_PBV = 'pbv'
VALVES_TYPE_FCV = 'fcv'
VALVES_TYPE_TCV = 'tcv'
VALVES_TYPE_GPV = 'gpv'
VALVES_TYPE_PRV = 'PRV'
VALVES_TYPE_PSV = 'PSV'
VALVES_TYPE_PBV = 'PBV'
VALVES_TYPE_FCV = 'FCV'
VALVES_TYPE_TCV = 'TCV'
VALVES_TYPE_GPV = 'GPV'
def get_valve_schema(name: str) -> dict[str, dict[str, Any]]: