From: Tom Powell Date: Sun, 2 Dec 2018 01:49:41 +0000 (-0800) Subject: Allow filtering by build id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1c5ae70fa98a7756508d87ed6bc2d88e5e052a1;p=GitLab%2Fstricted-build%2Flineage_builder.git Allow filtering by build id --- diff --git a/ui/app.py b/ui/app.py index e1ce474..85aa8c3 100644 --- a/ui/app.py +++ b/ui/app.py @@ -45,6 +45,8 @@ def parse_args(): if 'date' in request.args: date = datetime.datetime.strptime(request.args.get('date'), '%Y-%m-%d').date() args['build_date'] = datetime.datetime.strptime(request.args.get('date'), '%Y-%m-%d').date() + if 'id' in request.args: + args['build_id'] = request.args.get('id') return args @cache.memoize()