use old google api
This commit is contained in:
parent
1412cb4e39
commit
404842f849
4 changed files with 119 additions and 20 deletions
|
|
@ -242,11 +242,7 @@ def findMetadata(data):
|
|||
if r:
|
||||
response['items'].append(r)
|
||||
elif key == 'author,title':
|
||||
value = ' '.join(data.values())
|
||||
for isbn in meta.find(value):
|
||||
r = meta.lookup('isbn', isbn)
|
||||
if r:
|
||||
response['items'].append(r)
|
||||
response['items'] = meta.find(**data)
|
||||
elif key == 'id':
|
||||
import user.models
|
||||
items = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue