diff --git a/setup.cfg b/setup.cfg index 3693f03..fcb0428 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name=sqlor -version = 1.1.0 +version = 1.1.1 description = a wrap for DBAPI, to make python run sql easy and safe authors = yu moqing author_email = yumoqing@gmail.com diff --git a/sqlor/dbpools.py b/sqlor/dbpools.py index 3230d28..4350ce5 100755 --- a/sqlor/dbpools.py +++ b/sqlor/dbpools.py @@ -183,7 +183,7 @@ class DBPools: self.meta = {} def get_dbname(self, name): - desc = self.database.get(name) + desc = self.databases.get(name) if not desc: return None return desc.get('dbname')