|
|
@ -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( |
|
|
|