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
docs: simplify code structure
  • Loading branch information
burgess01 committed Dec 7, 2022
commit dc929082c12f5b97537c0170440920834f3c882c
4 changes: 1 addition & 3 deletions gatorgrade/input/in_file_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ def get_assignment_name(file: Path) -> (str):
for i in range(len(data) - 1):
if str(data[i]).includes("{'name':"):
# ex. need to go from {'name': 'top\n'} to top: split by space
unedited_assignment_name = str(data.pop(1))
# split by space, grab second, grab before \n
assignment_name = unedited_assignment_name[9:].split("\\")[0]
unedited_assignment_name = str(data[i])[9:].split("\\")[0]

return assignment_name

Expand Down