Browse Source

small fix for book recommendations

master
crunk 3 years ago
parent
commit
3db03015f1
  1. 2
      library/rnrfeed/rnrfeeder.py

2
library/rnrfeed/rnrfeeder.py

@ -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…
Cancel
Save