Skip to content

Commit 3512f0f

Browse files
committed
fix: try actually running the new command
Signed-off-by: Yves Bastide <yves@botify.com>
1 parent 4a16d19 commit 3512f0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simpleflow/command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def workflow_history(
382382
) -> None:
383383
from simpleflow.swf.mapper.models.history.base import History as BaseHistory
384384

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

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

0 commit comments

Comments
 (0)