Fix enum checking

This commit is contained in:
wqy
2022-09-17 18:02:48 +08:00
parent 4350b5d19e
commit 391ea0386c
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ def set_tank_vol_curve(name: str, id: str, vol_curve: str) -> ChangeSet:
def set_tank_overflow(name: str, id: str, overflow: str) -> ChangeSet:
if overflow is not OVERFLOW_YES or overflow is not OVERFLOW_NO:
if overflow != OVERFLOW_YES and overflow != OVERFLOW_NO:
return ChangeSet()
return _set_tank(name, id, 'overflow', 'str', overflow)