From fd3ed7fb8c65b8e4f3516244adcc556f0014c630 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Mon, 22 Nov 2021 09:25:31 +1100 Subject: [PATCH] fix author is now class object not dict --- bookwyrm/utils/isni.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/utils/isni.py b/bookwyrm/utils/isni.py index 2b353edf..fead999a 100644 --- a/bookwyrm/utils/isni.py +++ b/bookwyrm/utils/isni.py @@ -178,7 +178,7 @@ def augment_author_metadata(author, isni): # we DO want to overwrite aliases because we're adding them to the # existing aliases and ISNI will usually have more. # We need to dedupe because ISNI records often have lots of dupe aliases - aliases = set(isni_author["aliases"]) + aliases = set(isni_author.aliases) for alias in author.aliases: aliases.add(alias) author.aliases = list(aliases)