From ecdaf208f8578f97c434b1f59f72d03f9a5d7599 Mon Sep 17 00:00:00 2001 From: "martin@piware.de" <> Date: Thu, 19 Nov 2009 22:37:16 -0600 Subject: [PATCH] workitems: fix bp links if they are already URLs --- workitems.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/workitems.py b/workitems.py index 68554fe..5cad66d 100755 --- a/workitems.py +++ b/workitems.py @@ -369,8 +369,12 @@ def html(db): completion.sort(key=lambda k: k[1], reverse=True) for (bp, percent) in completion: - print ' %s %i/%i/%i %i%% %s' % ( - blueprints_base_url, bp, bp, data[bp][0], data[bp][2], + if bp.startswith('http:'): + url = bp + else: + url = '%s/ubuntu/+spec/%s' % (blueprints_base_url, bp) + print ' %s %i/%i/%i %i%% %s' % ( + url, bp, data[bp][0], data[bp][2], data[bp][1], percent, data[bp][-1]) -- 2.39.2