An open source, non-profit web search engine
Fix random.choice bug
Daoud Clarked5a56fe57635
diff --git a/mwmbl/redis_url_queue.py b/mwmbl/redis_url_queue.pyindex 681306f..4c6bc68 100644--- a/mwmbl/redis_url_queue.py+++ b/mwmbl/redis_url_queue.py@@ -86,7 +86,7 @@ class RedisURLQueue:logger.info(f"Getting batch from domains {domains}")# Add a random url as the root domain of one of DOMAINS- random_domain = random.choice(DOMAINS.keys())+ random_domain = random.choice(list(DOMAINS.keys()))urls = [f"https://{random_domain}/"]# Pop the highest scoring URL from each domain