|
|
@ -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:
|
|
|
|