Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Configurable Project Name #109

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
feature: search for split by backslash
  • Loading branch information
burgess01 committed Dec 7, 2022
commit ca82446557e9f941260192d54cd7dac42f62e1a4
2 changes: 1 addition & 1 deletion gatorgrade/input/in_file_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_assignment_name(file: Path) -> (str):
# ex. need to go from {'name': 'top\n'} to top: split by space
unedited_assignment_name = str(data.pop(1)).split(" ")[1]
# split by space, grab second, grab before \n
assignment_name = unedited_assignment_name[1:].split("\n")[0]
assignment_name = unedited_assignment_name[1:].split("\\")[0]

return assignment_name

Expand Down