Commit fb8ce693 authored by OzzieIsaacs's avatar OzzieIsaacs

Bugfix mature content

Update german translation
parent b596734c
This diff is collapsed.
......@@ -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=""
......
......@@ -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:
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment