fix unpack error

This commit is contained in:
meisnate12 2021-08-08 18:36:45 -04:00
parent 3b88d77492
commit 94933b79fc

View file

@ -179,7 +179,7 @@ class Cache:
id_to_return = row[to_id] if to_id == "imdb_id" else int(row[to_id])
expired = time_between_insertion.days > self.expiration
out_type = row["media_type"] if return_type else None
if out_type:
if return_type:
return id_to_return, out_type, expired
else:
return id_to_return, expired