Bugfix mature content

Update german translation
pull/278/head
OzzieIsaacs 7 years ago
parent b596734c36
commit fb8ce693f3

File diff suppressed because it is too large Load Diff

@ -375,7 +375,7 @@ class Config:
(self.config_default_role & ROLE_DELETE_BOOKS == ROLE_DELETE_BOOKS)) (self.config_default_role & ROLE_DELETE_BOOKS == ROLE_DELETE_BOOKS))
def mature_content_tags(self): 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): def get_Log_Level(self):
ret_value="" ret_value=""

@ -2316,8 +2316,9 @@ def profile():
content.sidebar_view += ub.SIDEBAR_READ_AND_UNREAD content.sidebar_view += ub.SIDEBAR_READ_AND_UNREAD
if "show_detail_random" in to_save: if "show_detail_random" in to_save:
content.sidebar_view += ub.DETAIL_RANDOM 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: try:
ub.session.commit() ub.session.commit()
except IntegrityError: except IntegrityError:

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save