Skip to content

Commit

Permalink
feat: Use WARNING level if no releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 16, 2024
1 parent f9c83d8 commit 48254f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/management/commands/record_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def compile_record(compiled_collection_id, ocid):
create_note(
collection,
# Use INFO level if all releases are dated and linked.
CollectionNote.Level.INFO if linked == len(dated) == len(releases) else CollectionNote.Level.WARNING,
CollectionNote.Level.INFO if linked == len(dated) == len(releases) > 0 else CollectionNote.Level.WARNING,
notes,
)
return save_compiled_release(compiled_release, collection, ocid)
Expand Down

0 comments on commit 48254f6

Please sign in to comment.