split the input topics into a list

This commit is contained in:
Andreas Zweili 2020-10-12 22:25:13 +02:00
parent aef724aa43
commit ce90dce9b6
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,10 @@ from datetime import datetime
class Header():
def __init__(self, article, cli_topics):
self.article = article
self.cli_topics = cli_topics
if cli_topics:
self.cli_topics = cli_topics.split(',')
else:
self.cli_topics = []
def _build_header_dict(self):