From c8b7e8a4cb412de3a1c44be444ec445b5e1a6002 Mon Sep 17 00:00:00 2001 From: Rutger Vos Date: Sat, 31 Aug 2024 12:31:27 +0200 Subject: [PATCH] messages are line break delimited, not a list --- barcode_validator/daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/barcode_validator/daemon.py b/barcode_validator/daemon.py index 687fba9..8584096 100644 --- a/barcode_validator/daemon.py +++ b/barcode_validator/daemon.py @@ -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"""
{status_emoji} Process ID: {r.process_id}