From e7d066841802a0ad6b337f8547e8fe739d2df298 Mon Sep 17 00:00:00 2001 From: Ivan Ladelshchikov Date: Wed, 27 Jul 2016 14:38:05 +0300 Subject: [PATCH] use self variables to fix undefined behaviour --- src/infi/clickhouse_orm/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/infi/clickhouse_orm/database.py b/src/infi/clickhouse_orm/database.py index 1187647..913e54c 100644 --- a/src/infi/clickhouse_orm/database.py +++ b/src/infi/clickhouse_orm/database.py @@ -118,9 +118,9 @@ class Database(object): def _build_params(self, settings): params = dict(settings or {}) if self.username: - params['username'] = username + params['username'] = self.username if self.password: - params['password'] = password + params['password'] = self.password return params def _substitute(self, query, model_class=None):