From 144485ddb7c08d4a753e321ab0515f0e5d83c0b0 Mon Sep 17 00:00:00 2001 From: Ose-Exem Date: Thu, 17 Aug 2023 16:01:06 +0900 Subject: [PATCH] =?UTF-8?q?Dashboard=20-=20tag=20=EC=B5=9C=EC=8B=A0?= =?UTF-8?q?=EC=88=9C=EC=9C=BC=EB=A1=9C=20=EC=A0=95=EB=A0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'}