1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-08 03:03:00 +00:00

Massadd of books to shelfs (#203, #404) from advanced search

Code cosmetics
bugfix error message on failed emails
refactored language name generation
This commit is contained in:
OzzieIsaacs
2018-08-19 10:14:20 +02:00
parent 34abf95fb2
commit d414bf3263
7 changed files with 157 additions and 113 deletions

View File

@@ -46,9 +46,8 @@ DEFAULT_PASS = "admin123"
DEFAULT_PORT = int(os.environ.get("CALIBRE_PORT", 8083))
class UserBase:
@property
def is_authenticated(self):
return True
@@ -170,7 +169,7 @@ class User(UserBase, Base):
theme = Column(Integer, default=0)
# Class for anonymous user is derived from User base and complets overrides methods and properties for the
# Class for anonymous user is derived from User base and completly overrides methods and properties for the
# anonymous user
class Anonymous(AnonymousUserMixin, UserBase):
def __init__(self):
@@ -204,7 +203,7 @@ class Anonymous(AnonymousUserMixin, UserBase):
return False
# Baseclass representing Shelfs in calibre-web inapp.db
# Baseclass representing Shelfs in calibre-web in app.db
class Shelf(Base):
__tablename__ = 'shelf'
@@ -774,5 +773,6 @@ else:
migrate_Database()
clean_database()
# Generate global Settings Object accecable from every file
# Generate global Settings Object accessible from every file
config = Config()
searched_ids = {}