mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-16 08:04:26 -04:00
fix API and CLU calls
This commit is contained in:
parent
f65c2b40f8
commit
1e3ce67834
2 changed files with 10 additions and 9 deletions
|
@ -42,9 +42,7 @@ class ActorSchema(Schema):
|
|||
|
||||
model: str
|
||||
statemachine: str
|
||||
STATE_FIELD_NAME: str
|
||||
# ACTIVE_STATE: str
|
||||
FINAL_STATES: list[str]
|
||||
ACTIVE_STATE: str
|
||||
EVENT_NAME: str
|
||||
CLAIM_ORDER: list[str]
|
||||
CLAIM_FROM_TOP_N: int
|
||||
|
@ -67,9 +65,9 @@ class ActorSchema(Schema):
|
|||
def resolve_name(obj) -> str:
|
||||
return str(obj)
|
||||
|
||||
# @staticmethod
|
||||
# def resolve_ACTIVE_STATE(obj) -> str:
|
||||
# return str(obj.ACTIVE_STATE)
|
||||
@staticmethod
|
||||
def resolve_ACTIVE_STATE(obj) -> str:
|
||||
return str(obj.ACTIVE_STATE)
|
||||
|
||||
@staticmethod
|
||||
def resolve_FINAL_STATES(obj) -> list[str]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue