Exclude work-related books
This commit is contained in:
parent
f98fd67f5a
commit
795e72b1db
1 changed files with 48 additions and 45 deletions
|
@ -111,6 +111,7 @@ for file in concernedfiles:
|
|||
for action in node.children:
|
||||
if action.heading == "read":
|
||||
for book in action.children:
|
||||
if "work" not in book.tags:
|
||||
bookid = re.sub(" and rated .*","",book.heading)
|
||||
if bookid not in bookids:
|
||||
status = "new"
|
||||
|
@ -128,6 +129,7 @@ for file in concernedfiles:
|
|||
origbook["readdates"].extend(twodict["readdates"])
|
||||
if action.heading == "progress":
|
||||
for book in action.children:
|
||||
if "work" not in book.tags:
|
||||
bookid = book.heading
|
||||
if bookid not in bookids:
|
||||
status = "new"
|
||||
|
@ -145,6 +147,7 @@ for file in concernedfiles:
|
|||
origbook["progressdates"].extend(twodict["progressdates"])
|
||||
if action.heading == "obtained":
|
||||
for book in action.children:
|
||||
if "work" not in book.tags:
|
||||
bookid = re.sub(" \(.*\)","",book.heading)
|
||||
if bookid not in bookids:
|
||||
status = "new"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue