Updated filter to not rely on valid config to work properly

This commit is contained in:
Ben Busby 2020-05-11 19:05:40 -06:00
parent dc65d7725f
commit 4a59d76cdc

View File

@ -19,9 +19,9 @@ class Filter:
if config is None:
config = {}
self.near = config.near
self.dark = config.dark
self.nojs = config.nojs
self.near = config['near'] if 'near' in config else ''
self.dark = config['dark'] if 'dark' in config else False
self.nojs = config['nojs'] if 'nojs' in config else False
self.mobile = mobile
self.secret_key = secret_key