Skip to content

Commit

Permalink
fix(status): upgrade to sdk v0.4.2 and update simulation list for sta…
Browse files Browse the repository at this point in the history
…tus changes
  • Loading branch information
AntoineDao committed Dec 27, 2019
1 parent 40c248b commit e4cf477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions queenbee_pollination/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,13 @@ def list(ctx):

try:
sims = client.simulations.list()
table = [[sim.id, sim.workflow_ref.name, sim.phase, sim.completed, sim.started_at, sim.finished_at] for sim in sims]
table = [[sim.id, sim.workflow_ref.name, sim.status, sim.started_at, sim.finished_at] for sim in sims]


table.sort(key=lambda r: r[4], reverse=True)


print(tabulate(table, headers=['ID', 'Workflow', 'Phase', 'Completed', 'Stated At', 'Finished At']))
print(tabulate(table, headers=['ID', 'Workflow', 'Status', 'Stated At', 'Finished At']))
except ApiException as e:
handle_api_error(ctx, e)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
queenbee==1.5.0
pollination-sdk==0.4.1
pollination-sdk==0.4.2
tabulate==0.8.6
requests==2.22.0

0 comments on commit e4cf477

Please sign in to comment.