diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2018-05-21 11:36:03 +0100 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2018-05-21 11:36:03 +0100 |
commit | e90ca14951734ddc3c97bd6fc84a6a98b4447cc7 (patch) | |
tree | 036b8844f99527ca44a52c61f9c8c73ce0c72dba | |
parent | 1d017ead1c5d65f4a7a8738643e64bc0b8f0c554 (diff) |
glance: Fix until handling
For until, if no timne is supplied then we need to adopt the
end of the day, not the beginning.
-rwxr-xr-x | bin/glance | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -440,7 +440,7 @@ def do_chart(args): if args.card_tracker: since = date.smart_parse(args.since) - until = date.smart_parse(args.until) + until = date.smart_parse(args.until, end_of_day=True) all_cards = report.issues.values() closed_cards = [ c for c in all_cards if c.date('resolutiondate') ] @@ -538,7 +538,7 @@ def do_filter(args): iso8601.parse_date(w['started']) >= since ] if args.worklog_until: - until = date.smart_parse(args.worklog_until) + until = date.smart_parse(args.worklog_until, end_of_day=True) for i in issues: i['worklog'] = [ w for w in i['worklog'] if iso8601.parse_date(w['started']) <= until ] |