Skip to content

Commit

Permalink
fix: case-insensitive curator comment + fix logger.warning statement
Browse files Browse the repository at this point in the history
 	modified:   adsdocmatch/oracle_util.py
  • Loading branch information
seasidesparrow committed Jul 24, 2023
1 parent 2e6f7c9 commit cc9260a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adsdocmatch/oracle_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,9 @@ def read_google_sheet(self, input_filename):
for index, row in dt.iterrows():
# if curator comment is not in vocabulary; print flag, and drop the row
comments = ['update', 'add', 'delete']
row.curator_comment = row.curator_comment.lower()
if row.curator_comment not in comments:
logger.warning('Error: Bad curator comment at', row.source_bib)
logger.warning('Error: Bad curator comment at %s' % row.source_bib)
dt.drop(index, inplace=True)

# where curator comment is 'update', duplicate row and rewrite actions;
Expand Down

0 comments on commit cc9260a

Please sign in to comment.