Skip to content

Commit

Permalink
Print out which groups are missing feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
So-Cool committed Jan 9, 2017
1 parent 0527073 commit f0bc397
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions generate_feedback.py
Expand Up @@ -44,9 +44,13 @@


# for each folder in current directory if it contains`feedback.txt`
dirs = [os.path.join(ROOT,d) for d in os.listdir(ROOT) \
if os.path.isdir(os.path.join(ROOT,d)) and \
os.path.exists(os.path.join(ROOT,d,FEEDBACK_FILE))]
dirs = []
for d in os.listdir(ROOT):
if os.path.isdir(os.path.join(ROOT,d)):
if os.path.exists(os.path.join(ROOT,d,FEEDBACK_FILE)):
dirs.append(os.path.join(ROOT,d))
else:
print "No feedback for group %s" % d

escape_doublequotes = re.compile(r"\"(?!\")", re.IGNORECASE)
for d in dirs:
Expand Down

0 comments on commit f0bc397

Please sign in to comment.