This commit is contained in:
Kovid Goyal 2010-08-18 15:46:48 -06:00
commit 341e11c767

View File

@ -95,8 +95,8 @@ class LibraryServer(ContentServer, MobileServer, XMLServer, OPDSServer, Cache):
'tools.digest_auth.users' : {opts.username.strip():opts.password.strip()}, 'tools.digest_auth.users' : {opts.username.strip():opts.password.strip()},
} }
sr = db.prefs.get('cs_restriction', '') if opts.restriction is None \ sr = getattr(opts, 'restriction', None)
else opts.restriction sr = db.prefs.get('cs_restriction', '') if sr is None else sr
self.set_search_restriction(sr) self.set_search_restriction(sr)
self.is_running = False self.is_running = False