From 7d07fef127995bdf593f04cfc1561d0534056f86 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 29 Apr 2016 22:53:31 +0200 Subject: [PATCH] not --- 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 11be8ae..9b87a8c 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): if p.site not in posters: posters[p.site] = [] poster = p.get() - if poster and not poster.width or not poster.height: + if poster and (not poster.width or not poster.height): p.failed = True p.status = "invalid image" p.image.delete()