From 4c2ec43fcec920e28c7e44c5194e06daf485391a Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 10 Feb 2021 16:53:51 -0800 Subject: [PATCH] Don't set default edition if it's already set --- bookwyrm/connectors/abstract_connector.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bookwyrm/connectors/abstract_connector.py b/bookwyrm/connectors/abstract_connector.py index f822fc5d1..2cbcda47c 100644 --- a/bookwyrm/connectors/abstract_connector.py +++ b/bookwyrm/connectors/abstract_connector.py @@ -145,8 +145,9 @@ class AbstractConnector(AbstractMinimalConnector): edition.connector = self.connector edition.save() - work.default_edition = edition - work.save() + if not work.default_edition: + work.default_edition = edition + work.save() for author in self.get_authors_from_data(edition_data): edition.authors.add(author)