switch to local lookup

This commit is contained in:
j 2016-01-09 12:52:17 +05:30
parent f2ad94453d
commit 26ab9a2f39

View file

@ -53,9 +53,11 @@ def lookup_provider(arg):
def lookup(key, value):
if not isvalid_id(key, value):
return {}
'''
if not settings.server.get('local_lookup'):
import oml.metaremote
return oml.metaremote.lookup(key, value)
'''
if key == 'isbn':
data = google.info(key, value)
else: