From 5f0969778eb297f891f471720c6aaeaeb14dfadb Mon Sep 17 00:00:00 2001 From: jakedt Date: Wed, 5 Mar 2014 15:14:12 -0500 Subject: [PATCH] Fix the status badge logic again. --- endpoints/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'