Skip to content

Commit f29dd01

Browse files
authored
[Feature:Plagiarism] Get files only from results/details (#62)
* change version_path for results folder * Modify path for other gradeables * fix python linting
1 parent 27e2bd4 commit f29dd01

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/concatenate_all.py

+6
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ def main():
168168
# loop over each version
169169
for version in sorted(os.listdir(user_path)):
170170
version_path = os.path.join(user_path, version)
171+
if dir == "results":
172+
# only the "details" folder within "results" contains files relevant to Lichen
173+
version_path = os.path.join(version_path, "details")
171174
if not os.path.isdir(version_path):
172175
continue
173176
if version_mode == "active_version" and int(version) != my_active_version:
@@ -214,6 +217,9 @@ def main():
214217
# loop over each version
215218
for other_version in sorted(os.listdir(other_user_path)):
216219
other_version_path = os.path.join(other_user_path, other_version)
220+
if dir == "results":
221+
# only the "details" dir within "results" contains files relevant to Lichen
222+
other_version_path = os.path.join(other_version_path, "details")
217223
if not os.path.isdir(other_version_path):
218224
continue
219225

0 commit comments

Comments
 (0)