Commit ee9e64d3 authored by Tom Powell's avatar Tom Powell

Coerce runner id to a string.

parent 3618ff0f
Pipeline #36802783 passed with stages
in 3 minutes and 54 seconds
...@@ -32,7 +32,7 @@ def process(request): ...@@ -32,7 +32,7 @@ def process(request):
build_stage = stage build_stage = stage
runner = build_stage.get("runner") runner = build_stage.get("runner")
if runner: if runner:
build.build_runner = Runner.get_or_create_by_id(runner.get('id')) build.build_runner = Runner.get_or_create_by_id(str(runner.get('id')))
if not build.build_runner.runner_name: if not build.build_runner.runner_name:
build.build_runner.runner_name = runner.get("description") build.build_runner.runner_name = runner.get("description")
date = datetime.datetime.strptime(build_stage.get("created_at"), "%Y-%m-%d %H:%M:%S UTC") date = datetime.datetime.strptime(build_stage.get("created_at"), "%Y-%m-%d %H:%M:%S UTC")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment