fix for cached episode IDs

pull/544/head
meisnate12 3 years ago
parent 0de6e2fe7b
commit aa5fbf7fd1

@ -202,6 +202,9 @@ class Cache:
if row and row[to_id]: if row and row[to_id]:
datetime_object = datetime.strptime(row["expiration_date"], "%Y-%m-%d") datetime_object = datetime.strptime(row["expiration_date"], "%Y-%m-%d")
time_between_insertion = datetime.now() - datetime_object time_between_insertion = datetime.now() - datetime_object
if "_" in row[to_id]:
id_to_return = row[to_id]
else:
try: try:
id_to_return = int(row[to_id]) id_to_return = int(row[to_id])
except ValueError: except ValueError:

Loading…
Cancel
Save