Skip to content

Commit

Permalink
Ignore empty comments. Fixes #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkuchenb committed May 23, 2020
1 parent eba9638 commit fe3e4d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/assignmenttool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def process(config):
raise AToolError(f'Could not find maximum score for task {task}')
record['score'] = row.Value
elif row.Type.upper() == 'COMMENT':
if pd.isna(row.Value):
continue # Ignore empty comments
# Check if this is a comment that applies to the entire sheet
if pd.isna(row.Task) and pd.isna(row.Subtask):
sheet_comments[row.Username].append(row.Value)
Expand Down

0 comments on commit fe3e4d9

Please sign in to comment.