Skip to content

Commit e1477ad

Browse files
authored
Update git graph data calculation to account for missing version release_date (boostorg#1737)
1 parent 301aaea commit e1477ad

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libraries/forms.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,6 @@ def _get_git_graph_data(self, prior_version: Version | None, version: Version):
489489
"""
490490
if prior_version is None:
491491
return None
492-
if prior_version.release_date is None or version.release_date is None:
493-
return None
494492

495493
@dataclass
496494
class Day:
@@ -581,7 +579,7 @@ def apply_colors(self):
581579
# The start date is the release date of the previous version
582580
# The end date is one day before the release date of the current version
583581
start: date = prior_version.release_date
584-
end: date = version.release_date - timedelta(days=1)
582+
end: date = (version.release_date or date.today()) - timedelta(days=1)
585583

586584
# if the release started on a Thursday, we want to add Sun -> Wed to the data
587585
# with empty counts, even if they aren't part of the release.

0 commit comments

Comments
 (0)