From c304846556cb0755429c52b1dca4e6fe5dfec5e6 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Mon, 14 Oct 2019 17:38:09 +0200 Subject: [PATCH] Add unstarted back to the overview --- commands/stories.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/stories.py b/commands/stories.py index 05896bf..3f6eff3 100644 --- a/commands/stories.py +++ b/commands/stories.py @@ -56,7 +56,7 @@ def __get_row( owner_id, points = item name = persons[owner_id]["name"] - estimates = [round(points[state], 1) for state in STATES[1:]] + estimates = [round(points[state], 1) for state in STATES] progress = "[" if show_accepted: @@ -68,6 +68,7 @@ def __get_row( + __burndown(COLOR_STARTED, "S", points["started"]) + __burndown(COLOR_REJECTED, "R", points["rejected"]) + __burndown(COLOR_PLANNED, "P", points["planned"]) + + __burndown(COLOR_PLANNED, "U", points["unstarted"]) + "]" ) @@ -130,7 +131,7 @@ def __print_totals(totals: Totals, persons: Persons, show_accepted: bool) -> Non COLOR_HEADER.print("Point totals:", end="\n\n") state_headers = [_format_state(state) for state in STATES] - headers = ("Owner", *state_headers[1:], "Total", "Progress") + headers = ("Owner", *state_headers, "Total", "Progress") data = sorted( (__get_row(item, persons, show_accepted) for item in totals.items()),