Skip to content

Commit

Permalink
messages are line break delimited, not a list
Browse files Browse the repository at this point in the history
  • Loading branch information
rvosa committed Aug 31, 2024
1 parent 4843dbe commit c8b7e8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion barcode_validator/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ def generate_markdown(cls, comment, config, file, r):
barcode_rank, full_rank, messages = r.calculate_ranks(verbosity=3)
status_emoji = "✅" if r.passes_all_checks() else "❗"
obs_taxon_names = "\n".join(f" - {taxon.name}" for taxon in r.obs_taxon)
message_items = "\n".join(f" - {m}" for m in messages)
messages_list = messages.split('\n') if isinstance(messages, str) else messages
message_items = "\n".join(f" - {m}" for m in messages_list)
comment += f"""<details>
<summary> {status_emoji} Process ID: {r.process_id} </summary>
Expand Down

0 comments on commit c8b7e8a

Please sign in to comment.