Use generalized mappings to handle import
This commit is contained in:
parent
0736c7e160
commit
4ccd9fc633
7 changed files with 152 additions and 178 deletions
|
@ -7,10 +7,3 @@ class GoodreadsImporter(Importer):
|
|||
For a more complete example of overriding see librarything_import.py"""
|
||||
|
||||
service = "Goodreads"
|
||||
|
||||
def parse_fields(self, entry):
|
||||
"""handle the specific fields in goodreads csvs"""
|
||||
entry.update({"import_source": self.service})
|
||||
# add missing 'Date Started' field
|
||||
entry.update({"Date Started": None})
|
||||
return entry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue