mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-26 10:00:37 +00:00
Merge remote-tracking branch 'restrict/patch-1'
This commit is contained in:
commit
dcba720e97
@ -345,6 +345,6 @@ def load_configuration(session):
|
|||||||
conf.config_denied_tags = conf.config_mature_content_tags
|
conf.config_denied_tags = conf.config_mature_content_tags
|
||||||
conf.save()
|
conf.save()
|
||||||
session.query(ub.User).filter(ub.User.mature_content != True). \
|
session.query(ub.User).filter(ub.User.mature_content != True). \
|
||||||
update({"restricted_tags": conf.config_mature_content_tags}, synchronize_session=False)
|
update({"denied_tags": conf.config_mature_content_tags}, synchronize_session=False)
|
||||||
session.commit()
|
session.commit()
|
||||||
return conf
|
return conf
|
||||||
|
Loading…
Reference in New Issue
Block a user