X-Git-Url: https://piware.de/gitweb/?a=blobdiff_plain;f=workitems.py;h=5cad66dea718fc9f82ac776b318de6a7ed2209eb;hb=ecdaf208f8578f97c434b1f59f72d03f9a5d7599;hp=fa40e47764b0800d579b0f252df41171a2e1d27c;hpb=73f39f614bd2ef7c96785b37b75c3e9a5ae15c21;p=bin.git diff --git a/workitems.py b/workitems.py index fa40e47..5cad66d 100755 --- a/workitems.py +++ b/workitems.py @@ -315,6 +315,8 @@ def csv(db, from_date, to_date): data = workitems_over_time(db) dates = sorted(data.keys()) + if not dates: + return f = _fromstr(from_date or dates[0]) t = _fromstr(to_date or dates[-1]) @@ -367,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])