From: martin@piware.de <> Date: Fri, 20 Nov 2009 04:37:16 +0000 (-0600) Subject: workitems: fix bp links if they are already URLs X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=commitdiff_plain;h=ecdaf208f8578f97c434b1f59f72d03f9a5d7599 workitems: fix bp links if they are already URLs --- 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])