aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-01-19 18:02:29 -0500
committerGitHub <[email protected]>2025-01-19 18:02:29 -0500
commitbf264cf4fdbfe9535287cfd365c8b5d83c36c26c (patch)
treef4eb71825898846093c426a7d4cb8efd589349c9
parent283654eaed68de9225521185e79e29ebc1d79cca (diff)
downloadyugen-main.tar.xz
yugen-main.zip
Update utils.pyHEADmain
-rw-r--r--watch/utils.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/watch/utils.py b/watch/utils.py
index fbaa02c..30c9996 100644
--- a/watch/utils.py
+++ b/watch/utils.py
@@ -18,14 +18,14 @@ from watch.tmdbmapper import get_anime_episodes as gae, get_tv_episode_group_det
dotenv.load_dotenv()
-# r = redis.Redis(
-# host=os.getenv("REDIS_HOST"),
-# port=os.getenv("REDIS_PORT"),
-# password=os.getenv("REDIS_PASSWORD"),
-# )
-
-r.flushall()
-print("Redis cache flushed")
+r = redis.Redis(
+ host=os.getenv("REDIS_HOST"),
+ port=os.getenv("REDIS_PORT"),
+ password=os.getenv("REDIS_PASSWORD"),
+)
+
+# r.flushall()
+# print("Redis cache flushed")
def get_episode_metadata(anime_data, episode):
episode_metadata = get_all_episode_metadata(anime_data)