From eeb1cc71975d98566ff9ff79f403bc3ec11cd4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jaenisch?= Date: Sat, 30 Apr 2022 19:08:31 +0200 Subject: [PATCH] Use a default shelf because Calibre indicates no reading status MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Jaenisch --- bookwyrm/importers/calibre_import.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bookwyrm/importers/calibre_import.py b/bookwyrm/importers/calibre_import.py index a0d712636..18c6358a8 100644 --- a/bookwyrm/importers/calibre_import.py +++ b/bookwyrm/importers/calibre_import.py @@ -3,6 +3,10 @@ from . import Importer class CalibreImporter(Importer): - """csv downloads from OpenLibrary""" + """csv downloads from Calibre""" service = "Calibre" + + def get_shelf(self, normalized_row): + # Calibre export does not indicate which shelf to use. Go with a default one for now + return "to-read"