Properly use the password when connecting the crawlers

develop
Sven Slootweg 12 years ago
parent dd4c62bc4e
commit 1fbb21e6d8

@ -13,7 +13,7 @@ class Database(object):
LECTURE = 10 LECTURE = 10
def __init__(self, host, user, password=None, database="learn"): 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): def topic_exists(self, provider, unique_id):
c = self.database.cursor() c = self.database.cursor()

Loading…
Cancel
Save