begin the headers functions
This commit is contained in:
parent
1a2b036fa5
commit
b1450ed2b7
|
@ -0,0 +1,19 @@
|
|||
def _get_topics_from_cli():
|
||||
pass
|
||||
|
||||
|
||||
def _build_header_dict(article):
|
||||
header = {}
|
||||
header['topics'] = _get_topics_from_cli()
|
||||
if article.authors:
|
||||
header['authors'] = article.authors
|
||||
if article.keywords:
|
||||
header['topics'].append(article.keywords)
|
||||
if not header['topics']:
|
||||
header['topics'] = ['to_categorise']
|
||||
return header
|
||||
|
||||
|
||||
def build_header(header):
|
||||
yaml = ""
|
||||
return yaml
|
Loading…
Reference in New Issue