small fix for book recommendations

This commit is contained in:
crunk 2021-05-23 22:46:30 +02:00
parent 70a0095279
commit 3db03015f1

View File

@ -34,7 +34,7 @@ def rabbithole(entry):
fieldsofinterest = getfieldsofinterest()
categories = [t.get('term') for t in entry.tags]
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")
publicationinfo = getfullpublication(id)
fulltitle = "{0} - {1}".format(