update django, use url instead of _get_url

This commit is contained in:
j 2021-10-18 15:40:06 +01:00
parent 8cd3fbc006
commit 4d21889e04
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ def getCovers(isbn, url_prefix='', limit=lambda x, y: 0.3 < x/y < 1):
cover = p.get()
if cover:
pjson = {}
pjson['url'] = url_prefix + cover._get_url()
pjson['url'] = url_prefix + cover.url
pjson['width'] = cover.width
pjson['height'] = cover.height
if p.site not in ['other', 'wikipedia.org'] or limit(cover.width, cover.height):

View File

@ -39,7 +39,7 @@ def getPosters(movie_id, url_prefix='', limit=lambda x, y: 0.3 < x/y < 1):
poster = None
if poster:
pjson = {}
pjson['url'] = url_prefix + poster._get_url()
pjson['url'] = url_prefix + poster.url
pjson['width'] = poster.width
pjson['height'] = poster.height
if p.site not in ['other', 'wikipedia.org'] or limit(poster.width, poster.height):

View File

@ -1,4 +1,4 @@
Django==1.9.9
Django<2
celery==3.1.23
django-celery==3.1.17
django-extensions==1.7.4