Add reminder about old categories
This commit is contained in:
parent
46f533746e
commit
5dd850d1cb
@ -96,6 +96,8 @@ def parse_and_extract(input_dir, verbose):
|
|||||||
|
|
||||||
cats = list()
|
cats = list()
|
||||||
for cat in doc.findall('./category'):
|
for cat in doc.findall('./category'):
|
||||||
|
# TODO check against a list of current categories,
|
||||||
|
# and strip any non-current categories
|
||||||
cats.append(cat.text)
|
cats.append(cat.text)
|
||||||
#entry["categories"] = cats # if you want a list
|
#entry["categories"] = cats # if you want a list
|
||||||
entry["categories"] = ";".join(cats) # if you want a string
|
entry["categories"] = ";".join(cats) # if you want a string
|
||||||
|
Loading…
Reference in New Issue
Block a user