update django, use url instead of _get_url
This commit is contained in:
parent
8cd3fbc006
commit
4d21889e04
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ def getCovers(isbn, url_prefix='', limit=lambda x, y: 0.3 < x/y < 1):
|
||||||
cover = p.get()
|
cover = p.get()
|
||||||
if cover:
|
if cover:
|
||||||
pjson = {}
|
pjson = {}
|
||||||
pjson['url'] = url_prefix + cover._get_url()
|
pjson['url'] = url_prefix + cover.url
|
||||||
pjson['width'] = cover.width
|
pjson['width'] = cover.width
|
||||||
pjson['height'] = cover.height
|
pjson['height'] = cover.height
|
||||||
if p.site not in ['other', 'wikipedia.org'] or limit(cover.width, cover.height):
|
if p.site not in ['other', 'wikipedia.org'] or limit(cover.width, cover.height):
|
||||||
|
|
|
@ -39,7 +39,7 @@ def getPosters(movie_id, url_prefix='', limit=lambda x, y: 0.3 < x/y < 1):
|
||||||
poster = None
|
poster = None
|
||||||
if poster:
|
if poster:
|
||||||
pjson = {}
|
pjson = {}
|
||||||
pjson['url'] = url_prefix + poster._get_url()
|
pjson['url'] = url_prefix + poster.url
|
||||||
pjson['width'] = poster.width
|
pjson['width'] = poster.width
|
||||||
pjson['height'] = poster.height
|
pjson['height'] = poster.height
|
||||||
if p.site not in ['other', 'wikipedia.org'] or limit(poster.width, poster.height):
|
if p.site not in ['other', 'wikipedia.org'] or limit(poster.width, poster.height):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Django==1.9.9
|
Django<2
|
||||||
celery==3.1.23
|
celery==3.1.23
|
||||||
django-celery==3.1.17
|
django-celery==3.1.17
|
||||||
django-extensions==1.7.4
|
django-extensions==1.7.4
|
||||||
|
|
Loading…
Reference in a new issue