Open benjamin051000 opened 1 year ago
A solution has been identified:
Replacing the "-" in the last name with a space " " resolves the issue. This worked when utilizing the --section
flag. The names were edited in the all_students.csv
file.
Note: In the CSV, the entry is <Lastnameone>-<Lastnametwo>, <Firstname>
. Replacing the - with a space resolved the problem.
FYI, when viewing the .csv raw, the first entry allows for a comma because it is wrapped in quotes. This is how it looks:
"<Lastnameone>-<Lastnametwo>, <Firstname>", ufid, blah, blah, blah
the comma within the first column is ignored since the quotes "escape" it.
This issue also happens with apostrophe last names, I will try just editing the all_students.csv file to replace it with a space.
It may be worth utilizing a third-party package for this, such as https://github.com/derek73/python-nameparser
Before we do that, however, I'd want to test it and see how well it performs, especially for people with more than two names, names with - and ', etc. I could test on previous years' submission datasets... I just wish canvas didn't do the stupid name mangling!
Thanks @jalvarez1492 , I think the above package may be a good potential solution to this.
This was definitely an issue before, but seems to have popped up again.
Names with the pattern (real names redacted)
<Firstname> <Lastnameone>-<Lastnametwo>
Are not extracting properly. They should have unzipped directories created for them in
Submissions/
and their names should be shown in the "Students to grade" list.