bugfix
This commit is contained in:
parent
f7ad20112b
commit
11945861b2
@ -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
|
||||
|
||||
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user