From 1fbb21e6d87c7044f79d089ac6e909c5f685a50c Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 28 Jan 2013 15:48:37 +0100 Subject: [PATCH] Properly use the password when connecting the crawlers --- updater/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater/lib.py b/updater/lib.py index 4fabdf6..d5dff98 100644 --- a/updater/lib.py +++ b/updater/lib.py @@ -13,7 +13,7 @@ class Database(object): LECTURE = 10 def __init__(self, host, user, password=None, database="learn"): - self.database = oursql.connect(host=host, user=user, db=database) + self.database = oursql.connect(host=host, user=user, passwd=password, db=database) def topic_exists(self, provider, unique_id): c = self.database.cursor()