Federated following

This commit is contained in:
Mouse Reeve
2020-01-26 19:50:22 -08:00
parent 19f6ebb9a7
commit b9d933e3b1
8 changed files with 99 additions and 69 deletions

View File

@ -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