Federated following
This commit is contained in:
parent
19f6ebb9a7
commit
b9d933e3b1
8 changed files with 99 additions and 69 deletions
|
@ -7,7 +7,7 @@ import requests
|
|||
def get_or_create_book(olkey, user=None, update=True):
|
||||
''' add a book '''
|
||||
# check if this is a valid open library key, and a book
|
||||
olkey = '/book/' + olkey
|
||||
olkey = olkey
|
||||
response = requests.get(OL_URL + olkey + '.json')
|
||||
|
||||
# get the existing entry from our db, if it exists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue