Skip to content

Commit

Permalink
For 844 ort by rule followed by error level
Browse files Browse the repository at this point in the history
  • Loading branch information
mugitty committed Aug 24, 2023
1 parent 6b318d2 commit 95a4ad1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/combined_assigned_by.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ def clear_creator_info(creator_info):

def sort_messages(r, messages):
if len(messages) > 0:
# Messages for GORULE:0000020 are sorted by level (Error before Warning), then by GO id
if r != "gorule-0000020":
return None
# Messages are sorted by GO id followed by Error level
messages.sort(key=lambda x: x.get('obj'))
messages.sort(key=lambda x: x.get('level'))

Expand Down

0 comments on commit 95a4ad1

Please sign in to comment.