1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-28 22:07:41 +00:00

Fixes from merge problems

This commit is contained in:
OzzieIsaacs
2020-10-06 21:46:09 +02:00
4 changed files with 116 additions and 47 deletions

View File

@@ -46,7 +46,6 @@ from weakref import WeakSet
try:
import unidecode
use_unidecode = True
except ImportError:
use_unidecode = False
@@ -100,9 +99,6 @@ class Identifiers(Base):
self.type = id_type
self.book = book
# def get(self):
# return {self.type: self.val}
def formatType(self):
format_type = self.type.lower()
if format_type == 'amazon':
@@ -355,8 +351,6 @@ class Books(Base):
self.path = path
self.has_cover = (has_cover != None)
# def as_dict(self):
# return {c.name: getattr(self, c.name) for c in self.__table__.columns}
def __repr__(self):
return u"<Books('{0},{1}{2}{3}{4}{5}{6}{7}{8}')>".format(self.title, self.sort, self.author_sort,