Skip to content

Commit 91d02e8

Browse files
committed
fix creativecommons/ccos-website-source#161 - add Emoji python library to convert emoji shortcodes on repo description
1 parent 0415984 commit 91d02e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generate_projects_page/generate_projects_page.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import boto3
77
import git
88
import yaml
9+
import emoji
910
from github import Github
1011
from github.GithubException import UnknownObjectException
1112

@@ -63,7 +64,7 @@ def get_repo_github_data(repo):
6364
'id': repo.id,
6465
'name': repo.name,
6566
'url': repo.html_url,
66-
'description': repo.description,
67+
'description': emoji.emojize(repo.description),
6768
'website': repo.homepage,
6869
'language': repo.language,
6970
'created': repo.created_at.isoformat(),

0 commit comments

Comments
 (0)