Skip to content

Commit ec1f901

Browse files
Colorize extendedSupport column
1 parent 27da2ae commit ec1f901

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/norwegianblue/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ def _colourify(data: list[dict], *, is_html: bool = False) -> list[dict]:
127127
six_months_from_now = now + relativedelta(months=+6)
128128

129129
for cycle in data:
130-
for property_ in ("support", "eol", "discontinued"):
130+
for property_ in ("support", "extendedSupport", "eol", "discontinued"):
131131
if property_ not in cycle:
132132
continue
133133

134134
# Handle Boolean
135135
if isinstance(cycle[property_], bool):
136-
if property_ == "support":
137-
colour = "green" if cycle["support"] else "red"
136+
if property_ in ("support", "extendedSupport"):
137+
colour = "green" if cycle[property_] else "red"
138138
else: # "eol" and "discontinued"
139139
colour = "red" if cycle[property_] else "green"
140140

@@ -196,6 +196,7 @@ def _tabulate(
196196
"latest",
197197
"latest release",
198198
"support",
199+
"extendedSupport",
199200
"discontinued",
200201
"eol",
201202
):

0 commit comments

Comments
 (0)