Skip to content

Commit

Permalink
Remove emojis from description (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanfdo18098 authored May 8, 2024
1 parent a9e3ed7 commit 50605b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python_scripts/dynamic_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ def get_githubData():

if (p in projects_api):
p_api = projects_api[p]

# replace \u2019 with ' in description
p_api['description'] = p_api['description'].replace('\u2019', "'")
# remove emojis from description
p_api['description'] = p_api['description'].encode('ascii', 'ignore').decode('ascii')

proj['description'] = p_api['description']
proj['category'] = p_api['category']
proj['project_url'] = p_api['project_url']
Expand Down

0 comments on commit 50605b6

Please sign in to comment.