Browse Source

small fix for book recommendations

master
crunk 4 years ago
parent
commit
07a89c8f7a
  1. 7
      library/rnrfeed/rnrfeeder.py

7
library/rnrfeed/rnrfeeder.py

@ -18,6 +18,9 @@ def getentries():
def getlatestevent():
for entry in feed.entries:
if "readrepair" in entry.category:
entry[entry.title] = []
entrylist = entry[entry.title]
entrylist.append(entry.description)
return entry
@ -32,9 +35,9 @@ def gettitles():
def rabbithole(entry):
pubtitles = {}
fieldsofinterest = getfieldsofinterest()
categories = [t.get('term') for t in entry.tags]
categories = [t.get('term').lower() for t in entry.tags]
for id, fields in fieldsofinterest.items():
if [f for f in fields if(f.lower().strip() in categories.lower())]:
if [f for f in fields if(f.strip().lower() in categories)]:
# print("book found")
publicationinfo = getfullpublication(id)
fulltitle = "{0} - {1}".format(

Loading…
Cancel
Save