From b192e51f5fa89eebbabb4f50ca90fdd5c68e55a1 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sun, 20 Jun 2021 18:31:33 -0400 Subject: [PATCH] for for imdb convert --- modules/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cache.py b/modules/cache.py index 75e58202..7c2b8482 100644 --- a/modules/cache.py +++ b/modules/cache.py @@ -155,7 +155,7 @@ class Cache: if row and row[to_id]: datetime_object = datetime.strptime(row["expiration_date"], "%Y-%m-%d") time_between_insertion = datetime.now() - datetime_object - id_to_return = int(row[to_id]) + id_to_return = row[to_id] if to_id == "imdb_id" else int(row[to_id]) expired = time_between_insertion.days > self.expiration return id_to_return, expired