Dashboard - tag 최신순으로 정렬

This commit is contained in:
Ose-Exem
2023-08-17 16:01:06 +09:00
parent ee6352148e
commit 144485ddb7

View File

@@ -16,7 +16,8 @@ def get_commit_id():
return repo.head.commit return repo.head.commit
def get_tags(): 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(): def get_github_releases():
headers = {'Authorization': f'Bearer {github_token}', 'Accept': 'application/vnd.github.v3+json'} headers = {'Authorization': f'Bearer {github_token}', 'Accept': 'application/vnd.github.v3+json'}