Skip to content

Commit

Permalink
fix: try actually running the new command
Browse files Browse the repository at this point in the history
Signed-off-by: Yves Bastide <[email protected]>
  • Loading branch information
ybastide committed Dec 4, 2024
1 parent 4a16d19 commit 3512f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simpleflow/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def workflow_history(
) -> None:
from simpleflow.swf.mapper.models.history.base import History as BaseHistory

if ctx.format != "json" or not ctx.header:
if ctx.parent.params["format"] != "json" or not ctx.parent.params["header"]:
raise NotImplementedError("Only pretty JSON mode is implemented")

ex = helpers.get_workflow_execution(domain, workflow_id, run_id)
Expand All @@ -397,7 +397,7 @@ def workflow_history(
history = History(raw_history)
if format == "raw":
events = []
for event in history.events[:10]:
for event in history.events:
e = {}
for k in ["id", "type", "state", "timestamp", "input", "control", *event.__dict__]:
if k.startswith("_") or k == "raw":
Expand Down

0 comments on commit 3512f0f

Please sign in to comment.