Skip to content

Commit

Permalink
fix(FCL-322): fix off-by-one error in year ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonj04 committed Sep 24, 2024
1 parent 251f6ca commit 1eeed60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/views/sitemaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_context_data(self, **kwargs) -> dict[str, Any]:

# Dynamically append a sitemap for each court
for court in CourtDates.objects.all():
for year in range(court.start_year, court.end_year):
for year in range(court.start_year, court.end_year + 1):
context["maps"].append(
self.request.build_absolute_uri(
reverse("sitemap_court", kwargs={"code": court.param, "year": year})
Expand Down

0 comments on commit 1eeed60

Please sign in to comment.