Skip to content

Commit

Permalink
feat: added coded to remove an emoji before sending it to gatorgrade …
Browse files Browse the repository at this point in the history
…in command_line_generator.py
  • Loading branch information
rebekahrudd committed Dec 3, 2024
1 parent c1072ac commit a256c2c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gatorgrade/input/command_line_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a256c2c

Please sign in to comment.