Skip to content

Commit

Permalink
Merge pull request #203 from dhis2/update-support-status
Browse files Browse the repository at this point in the history
chore: update support status for last 3 versions, not 4
  • Loading branch information
radnov authored Dec 9, 2024
2 parents 8f9844d + 8ba7204 commit ed47a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/update-stable-json/update_stable_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def update_existing_version(version: Dict[str, Any], new_release: Dict[str, Any]

def update_support_status(data: Dict[str, Any]) -> None:
for i, version in enumerate(data['versions']):
version['supported'] = i < 4
version['supported'] = i < 3

print("Support status updated for the last 4 versions")
print("Support status updated for the last 3 versions")

def update_latest_status(data: Dict[str, Any]) -> None:
latest_version = max(data['versions'], key=lambda v: v['version'])
Expand Down

0 comments on commit ed47a0c

Please sign in to comment.