mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-25 00:10:40 +00:00
15 lines
361 B
Python
15 lines
361 B
Python
""" handle reading a csv from calibre """
|
|
from bookwyrm.models import Shelf
|
|
|
|
from . import Importer
|
|
|
|
|
|
class CalibreImporter(Importer):
|
|
"""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 Shelf.TO_READ
|