Skip to content
Snippets Groups Projects
Commit f0ea3c94 authored by tuhe's avatar tuhe
Browse files

Minor change not on pypi

parent 06a9f950
Branches
No related tags found
No related merge requests found
......@@ -168,14 +168,23 @@ def handle_projects(verbose=False, gather_main_xlsx_file=True, plagiarism_check=
ins_email = v[0]['email']
nags.append((name, ins_email, nlines))
Nerrors = sum([n[-1] for n in nags])
err = []
serrors = None
if Nerrors > 0:
print("\n> %i errors. These instructors have parse errors (.txt)" % sum([n[-1] for n in nags]))
print("; ".join([email for (_, email, _) in nags]))
print(", ".join([name.capitalize() for (name, _, _) in nags]))
print("TA/Errors: " + ", ".join(["%s:%i" % (name.capitalize(), lines) for (name, _, lines) in nags]))
print("---")
err.append("\n> %i errors. These instructors have parse errors (.txt)" % sum([n[-1] for n in nags]))
err.append("; ".join([email for (_, email, _) in nags]))
err.append(", ".join([name.capitalize() for (name, _, _) in nags]))
err.append("TA/Errors: " + ", ".join(["%s:%i" % (name.capitalize(), lines) for (name, _, lines) in nags]))
err.append("---")
serrors = "\n".join(err)
print(serrors)
else:
print("No parse errors found")
return serrors
def compute_error_files(info, paths):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment