diff --git a/dashboard/settings.py b/dashboard/settings.py index 69c7f75..d5c1148 100644 --- a/dashboard/settings.py +++ b/dashboard/settings.py @@ -16,7 +16,8 @@ def get_commit_id(): return repo.head.commit def get_tags(): - return repo.tags + latest_tags = sorted(repo.tags, key=lambda t: t.commit.committed_date, reverse=True) + return latest_tags def get_github_releases(): headers = {'Authorization': f'Bearer {github_token}', 'Accept': 'application/vnd.github.v3+json'}