From 7ab27db0dd38e70531be139ef8a016d0ad6f7edf Mon Sep 17 00:00:00 2001 From: j Date: Fri, 1 Feb 2019 18:46:07 +0530 Subject: [PATCH] cover fallback --- oml/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/item/models.py b/oml/item/models.py index 72d6b8e..149a678 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -837,13 +837,13 @@ def update_sort_table(): def download_cover(id): key = 'cover:%s' % id + cover = None with db.session(): i = Item.get(id) if i: url = i.meta.get('cover') else: url = None - cover = None logger.debug('download cover %s %s', id, url) ratio = None