rabin 5 年之前
父节点
当前提交
421a88068a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      demeter/db.py

+ 1 - 1
demeter/db.py

@@ -39,7 +39,7 @@ class Postgresql(object):
 	def __init__(self, config):
 	def __init__(self, config):
 		psycopg2 = __import__('psycopg2')
 		psycopg2 = __import__('psycopg2')
 		self.create(config['dbname'])
 		self.create(config['dbname'])
-		self.connect = psycopg2.connect(host=config['host'], port=config['port'], user=config['username'], password=config['password'])
+		self.connect = psycopg2.connect(host=config['host'], port=config['port'], user=config['username'], password=config['password'], database=config['dbname'])
 
 
 	def get(self):
 	def get(self):
 		return self.connect
 		return self.connect