From 7f825462301a087ede0b866a381b62c000d2e9f1 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 27 Mar 2020 18:36:45 -0700 Subject: [PATCH] Typo fix --- fedireads/connectors/openlibrary.py | 1 - fedireads/connectors/settings.py | 2 +- fedireads/models/book.py | 1 - init_db.py | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fedireads/connectors/openlibrary.py b/fedireads/connectors/openlibrary.py index 0f69a79d5..64e9bbe32 100644 --- a/fedireads/connectors/openlibrary.py +++ b/fedireads/connectors/openlibrary.py @@ -76,7 +76,6 @@ class Connector(AbstractConnector): key = data.get('works')[0]['key'] key = key.split('/')[-1] work = self.get_or_create_book(key) - h book.parent_work = work diff --git a/fedireads/connectors/settings.py b/fedireads/connectors/settings.py index a56b2cf23..425e56ef7 100644 --- a/fedireads/connectors/settings.py +++ b/fedireads/connectors/settings.py @@ -1,3 +1,3 @@ ''' settings book data connectors ''' -CONNECTORS = ['openlibrary', 'fedireads'] +CONNECTORS = ['openlibrary', 'fedireads_connector'] diff --git a/fedireads/models/book.py b/fedireads/models/book.py index 9f52a1f1f..ed6423ffa 100644 --- a/fedireads/models/book.py +++ b/fedireads/models/book.py @@ -84,7 +84,6 @@ class Book(FedireadsModel): through='ShelfBook', through_fields=('book', 'shelf') ) - # TODO: why can't I just call this work???? parent_work = models.ForeignKey('Work', on_delete=models.PROTECT, null=True) objects = InheritanceManager() diff --git a/init_db.py b/init_db.py index e121503b4..1487d356f 100644 --- a/init_db.py +++ b/init_db.py @@ -22,7 +22,7 @@ Connector.objects.create( Connector.objects.create( identifier=DOMAIN, - connector_file='fedireads', + connector_file='fedireads_connector', base_url='https://%s/book' % DOMAIN, covers_url='https://%s/images/covers' % DOMAIN, search_url='https://%s/search?q=' % DOMAIN,