Skip to content

Commit

Permalink
Merge branch 'main' into feat-1727-new-workflow-execution-page-local-…
Browse files Browse the repository at this point in the history
…main

Signed-off-by: Rajesh Jonnalagadda <[email protected]>
  • Loading branch information
rajesh-jonnalagadda authored Sep 5, 2024
2 parents 7e13da2 + a25e63e commit a31d884
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions keep/api/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,7 @@ def get_workflow_executions(tenant_id, workflow_id, limit=50, offset=0, tab=2, s
if passCount > 0:
passFail = (passCount / failCount) * 100 if failCount > 0 else 100.00
else:
passFail = 0.0

passFail = 0.0
avgDuration = query.with_entities(func.avg(WorkflowExecution.execution_time)).scalar()
avgDuration = avgDuration if avgDuration else 0.0

Expand Down

0 comments on commit a31d884

Please sign in to comment.