From a256c2cd722018eaaac1802756401bddcb7a5816 Mon Sep 17 00:00:00 2001 From: Rebekah Rudd Date: Tue, 3 Dec 2024 15:34:58 -0500 Subject: [PATCH] feat: added coded to remove an emoji before sending it to gatorgrade in command_line_generator.py --- gatorgrade/input/command_line_generator.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gatorgrade/input/command_line_generator.py b/gatorgrade/input/command_line_generator.py index 364fbe78..b7429a6a 100644 --- a/gatorgrade/input/command_line_generator.py +++ b/gatorgrade/input/command_line_generator.py @@ -41,7 +41,14 @@ def generate_checks( if description is not None: gg_args.extend(["--description", str(description)]) # Always add name of check, which should be in data - gg_args.append(str(check_data.check.get("check"))) + + # removed_emojis = str(check_data.check.get("check")).remove('emojis') + string_check = str(check_data.check.get("check")) + for i in string_check: + if ord(i) > "/u2728": + removed_emojis = string_check.replace(i, "") + + gg_args.append(removed_emojis) # Add any additional options options = check_data.check.get("options") if options is not None: