mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +03:00
Small state translation fix
This commit is contained in:
parent
72407449be
commit
c61e7e5444
@ -93,9 +93,11 @@ class State(enum.StrEnum):
|
||||
def PUBLISH_STATES(self) -> list[str]:
|
||||
return [self.LAUNCHING, self.PREPARING]
|
||||
|
||||
@classproperty
|
||||
@property
|
||||
def localized(self) -> str:
|
||||
"""Returns the literal translation of the state"""
|
||||
print(self)
|
||||
print(_TRANSLATIONS.get(self))
|
||||
return _TRANSLATIONS.get(self, _TRANSLATIONS[State.UNKNOWN])
|
||||
|
||||
def is_active(self) -> bool:
|
||||
|
Loading…
Reference in New Issue
Block a user