Publisher fix
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user