From 50605b6acec97eca145a1a35b99ab93a950a5309 Mon Sep 17 00:00:00 2001 From: IshanFernando <73381996+ishanfdo18098@users.noreply.github.com> Date: Wed, 8 May 2024 07:44:35 +0530 Subject: [PATCH] Remove emojis from description (#117) --- python_scripts/dynamic_data.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python_scripts/dynamic_data.py b/python_scripts/dynamic_data.py index b1bc8bf0..7bfa9108 100644 --- a/python_scripts/dynamic_data.py +++ b/python_scripts/dynamic_data.py @@ -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']