Skip to content

Commit

Permalink
Fix reference before assignment error
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Nov 7, 2024
1 parent 56e75b0 commit ffe4deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/src/backend/views/PipelineRuns.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def post(self, request, group_id, pipeline_id, pipeline_run_uuid):


# Format the started at and last_modified
run = model_to_dict(run)
run = model_to_dict(pipeline_run)

run["started_at"] = run["started_at"].strftime("%Y-%m-%d %H:%M:%S") if run["started_at"] else None
run["last_modified"] = run["last_modified"].strftime("%Y-%m-%d %H:%M:%S") if run["last_modified"] else None
Expand Down

0 comments on commit ffe4deb

Please sign in to comment.