Skip to content

Commit

Permalink
Update stat calculation for scientific-paper contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
Deee92 committed Aug 15, 2024
1 parent 636d3e6 commit 79ccc05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/stat_submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def stat_categories(path):

for category in categories:
for dirpath, dirnames, filenames in os.walk(categories[category]["path"], topdown=True):
if (category == "presentation" or category == "demo" or category == "presentation-demo"):
if (category == "presentation" or category == "demo" or category == "presentation-demo" or category == "scientific-paper"):
if dirpath.split("/")[-1].startswith("week"):
# if we are in a weekX folder
categories[category][dirpath.split("/")[-1][:5]] = len(dirnames)
Expand All @@ -159,7 +159,7 @@ def stat_students(category, path):
student_names = list()

for dirpath, dirnames, filenames in os.walk(path, topdown=True):
if (category == "presentation" or category == "demo" or category == "presentation-demo"):
if (category == "presentation" or category == "demo" or category == "presentation-demo" or category == "scientific-paper"):
if dirpath.split("/")[-1].startswith("week"):
# if we are in a weekX folder
for folder in dirnames:
Expand Down

0 comments on commit 79ccc05

Please sign in to comment.