split the input topics into a list
This commit is contained in:
parent
aef724aa43
commit
ce90dce9b6
|
@ -4,7 +4,10 @@ from datetime import datetime
|
||||||
class Header():
|
class Header():
|
||||||
def __init__(self, article, cli_topics):
|
def __init__(self, article, cli_topics):
|
||||||
self.article = article
|
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):
|
def _build_header_dict(self):
|
||||||
|
|
Loading…
Reference in New Issue