small fix for book recommendations
This commit is contained in:
parent
70a0095279
commit
3db03015f1
@ -34,7 +34,7 @@ def rabbithole(entry):
|
|||||||
fieldsofinterest = getfieldsofinterest()
|
fieldsofinterest = getfieldsofinterest()
|
||||||
categories = [t.get('term') for t in entry.tags]
|
categories = [t.get('term') for t in entry.tags]
|
||||||
for id, fields in fieldsofinterest.items():
|
for id, fields in fieldsofinterest.items():
|
||||||
if [f for f in fields if(f.strip() in categories)]:
|
if [f for f in fields if(f.lower().strip() in categories.lower())]:
|
||||||
# print("book found")
|
# print("book found")
|
||||||
publicationinfo = getfullpublication(id)
|
publicationinfo = getfullpublication(id)
|
||||||
fulltitle = "{0} - {1}".format(
|
fulltitle = "{0} - {1}".format(
|
||||||
|
Loading…
Reference in New Issue
Block a user