Skip to content

Commit

Permalink
✨ Add ability to set priority to -1 for clinical attr
Browse files Browse the repository at this point in the history
  • Loading branch information
haynescd authored and inodb committed May 8, 2023
1 parent 4b4723a commit 45ce1a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scripts/importer/validateData.py
Original file line number Diff line number Diff line change
Expand Up @@ -2600,12 +2600,12 @@ def processTopLines(self, line_list):
invalid_values = True
elif self.METADATA_LINES[line_index] == 'priority':
try:
if int(value) < 0:
if int(value) < -1:
raise ValueError()
except ValueError:
self.logger.error(
'Priority definition should be an integer, and should be '
'greater than or equal to zero',
'greater than or equal to -1',
extra={'line_number': line_index + 1,
'column_number': col_index + 1,
'cause': value})
Expand Down

0 comments on commit 45ce1a6

Please sign in to comment.