Bugfix mature content

Update german translation
This commit is contained in:
OzzieIsaacs 2017-08-12 18:52:56 +02:00
parent b596734c36
commit fb8ce693f3
5 changed files with 442 additions and 385 deletions

File diff suppressed because it is too large Load Diff

View File

@ -375,7 +375,7 @@ class Config:
(self.config_default_role & ROLE_DELETE_BOOKS == ROLE_DELETE_BOOKS))
def mature_content_tags(self):
return self.config_mature_content_tags.split(",")
return list(map(unicode.lstrip, self.config_mature_content_tags.split(",")))
def get_Log_Level(self):
ret_value=""

View File

@ -2316,8 +2316,9 @@ def profile():
content.sidebar_view += ub.SIDEBAR_READ_AND_UNREAD
if "show_detail_random" in to_save:
content.sidebar_view += ub.DETAIL_RANDOM
if "default_language" in to_save:
content.default_language = to_save["default_language"]
content.mature_content = "show_mature_content" in to_save
try:
ub.session.commit()
except IntegrityError:

File diff suppressed because it is too large Load Diff