diff --git a/endpoints/web.py b/endpoints/web.py index f7acf49b4..c2198fb67 100644 --- a/endpoints/web.py +++ b/endpoints/web.py @@ -220,7 +220,7 @@ def build_status_badge(namespace, repository): status_name = 'ready' elif build and build.phase == 'error': status_name = 'failed' - elif build: + elif build and build.phase != 'complete': status_name = 'building' else: status_name = 'none'