1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 17:40:31 +00:00
This commit is contained in:
Ozzieisaacs 2019-01-19 16:48:04 +01:00
parent 8e95636599
commit 62574939b2

View File

@ -2333,6 +2333,7 @@ def register():
content.password = generate_password_hash(password)
content.role = config.config_default_role
content.sidebar_view = config.config_default_show
content.mature_content = bool(config.config_default_show & ub.MATURE_CONTENT)
try:
ub.session.add(content)
ub.session.commit()