Skip to content

Commit

Permalink
Update branch-table.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yceballost committed Oct 18, 2024
1 parent 1baa05b commit 0b4373b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/branch-table/branch-table.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def format_time_difference(days):
# Build the formatted string based on the components
formatted_time = []
if years > 0:
formatted_time.append(f"{years}yr{'s' if years > 1 else ''}")
formatted_time.append(f"{years} yr{'s' if years > 1 else ''}")
if months > 0:
formatted_time.append(f"{months}mo")
formatted_time.append(f"{months} mo")
if remaining_days > 0 or (years == 0 and months == 0):
formatted_time.append(f"{remaining_days}d")
formatted_time.append(f"{remaining_days} d")
if remaining_days == 0 and years == 0 and months == 0:
return "Today"

Expand Down

0 comments on commit 0b4373b

Please sign in to comment.