From 226c4fb2c046eac384426662c5acff57b111fc6f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 2 Jun 2013 12:48:02 +0200 Subject: [PATCH] return latest poster first, fixes #1561 --- oxdata/poster/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxdata/poster/models.py b/oxdata/poster/models.py index c78b6bf..65d3a4f 100644 --- a/oxdata/poster/models.py +++ b/oxdata/poster/models.py @@ -29,7 +29,7 @@ def getPosters(movie_id, url_prefix='', limit=lambda x, y: 0.3 < x/y < 1): get_poster_urls(movie_id) posters = {} if url_prefix.endswith('/'): url_prefix = url_prefix[:-1] - for p in PosterCache.objects.all().filter(movie_id=movie_id, failed=False).order_by('id'): + for p in PosterCache.objects.all().filter(movie_id=movie_id, failed=False).order_by('-id'): if p.site not in posters: posters[p.site] = [] poster = p.get()