Skip to content

Commit b1aeac5

Browse files
authored
[Feature:Plagiarism] Implement ignored submissions (#37)
1 parent ef703d2 commit b1aeac5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/concatenate_all.py

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def main():
3939
semester = lichen_config_data["semester"]
4040
course = lichen_config_data["course"]
4141
gradeable = lichen_config_data["gradeable"]
42+
users_to_ignore = lichen_config_data["ignore_submissions"]
4243

4344
# this assumes regex is seperated by a ','
4445
regex_expressions = lichen_config_data["regex"].split(',')
@@ -84,6 +85,8 @@ def main():
8485
for user in sorted(os.listdir(submission_dir)):
8586
if not os.path.isdir(os.path.join(submission_dir, user)):
8687
continue
88+
elif user in users_to_ignore:
89+
continue
8790
for version in sorted(os.listdir(os.path.join(submission_dir, user))):
8891
if not os.path.isdir(os.path.join(submission_dir, user, version)):
8992
continue

0 commit comments

Comments
 (0)