Publisher fix

This commit is contained in:
Luciano Gervasoni
2025-04-23 17:34:10 +02:00
parent e5c574ba33
commit cf55c586f7
2 changed files with 3 additions and 3 deletions

View File

@@ -140,9 +140,9 @@ class Publisher():
summary, five_w = "", ""
for k, v in generated_content_dict.items():
if ("summary" in k.lower()):
summary = v
summary = v if type(v) is str else "\n".join(summary)
else:
five_w += "{}: {}\n".format(k.capitalize(), v)
five_w += "{}: {}\n".format(k.capitalize(), v if type(v) is str else ". ".join(v) )
# Aggregate generated content
generated_content = "{}\n\n{}".format(summary, five_w)