Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

feat: import REDIS_URL from env_vars and use in Redis connection

thiswillbeyourgithub (aider)62ded0380933
diff --git a/mwmbl/crawl.py b/mwmbl/crawl.py
index 058a3bf..2e3ce1c 100644
--- a/mwmbl/crawl.py
+++ b/mwmbl/crawl.py
@@ -40,7 +40,7 @@ API_KEY = os.environ["MWMBL_API_KEY"]
BATCH_QUEUE_KEY = "batch-queue"
-redis = Redis.from_url(os.environ.get("REDIS_URL", "redis://127.0.0.1:6379"), decode_responses=True)
+redis = Redis.from_url(REDIS_URL, decode_responses=True)
url_queue = RedisURLQueue(redis, lambda: set())