Fixes loading more data
This commit is contained in:
parent
d3671d981f
commit
3e61f48da2
4 changed files with 54 additions and 64 deletions
|
@ -50,7 +50,7 @@ class Work(Book):
|
|||
''' work instance of a book object '''
|
||||
lccn: str = ''
|
||||
defaultEdition: str = ''
|
||||
editions: List[str]
|
||||
editions: List[str] = field(default_factory=lambda: [])
|
||||
type: str = 'Work'
|
||||
|
||||
|
||||
|
@ -58,9 +58,9 @@ class Work(Book):
|
|||
class Author(ActivityObject):
|
||||
''' author of a book '''
|
||||
name: str
|
||||
born: str = ''
|
||||
died: str = ''
|
||||
aliases: str = ''
|
||||
born: str = None
|
||||
died: str = None
|
||||
aliases: List[str] = field(default_factory=lambda: [])
|
||||
bio: str = ''
|
||||
openlibraryKey: str = ''
|
||||
wikipediaLink: str = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue