Fix for yet more arbitrary py3 changes breaking code. Fixes #400

This commit is contained in:
Jim Miller 2019-06-08 08:26:25 -05:00
parent f4d05d4f24
commit cbcfd32464
2 changed files with 3 additions and 3 deletions

View file

@ -1999,7 +1999,7 @@ class FanFicFarePlugin(InterfaceAction):
for t in list(mi.tags) + list(old_tags):
foldedcase_tags[t.lower()] = t
mi.tags = foldedcase_tags.values()
mi.tags = list(foldedcase_tags.values())
#print("mi.tags:%s"%mi.tags)
if book['all_metadata']['langcode']:
@ -2171,7 +2171,7 @@ class FanFicFarePlugin(InterfaceAction):
authurls = book['all_metadata']['authorUrl'].split(", ")
authorlist = [ a.replace('&',';') for a in book['author'] ]
authorids = db.new_api.get_item_ids('authors',authorlist)
authordata = db.new_api.author_data(authorids.values())
authordata = db.new_api.author_data(list(authorids.values()))
# print("\n\nauthorids:%s"%authorids)
# print("authordata:%s"%authordata)

View file

@ -298,7 +298,7 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
del threadmarkgroups[cat_name]
# more categories left? new or at least unknown
if threadmarkgroups:
cats = threadmarkgroups.keys()
cats = list(threadmarkgroups.keys())
# alphabetize for lack of a better idea to insure consist ordering
cats.sort()
for cat_name in cats: