rabin 6 년 전
부모
커밋
2c5c8c6274
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      db.py

+ 1 - 1
db.py

@@ -55,7 +55,7 @@ class Mysql(object):
 		
 	def __init__(self, config):
 		pymysql = __import__('pymysql')
-		self.connect = pymysql.connect(host=config['host'], port=config['port'], user=config['username'], password=config['password'], database=config['dbname'])
+		self.connect = pymysql.connect(host=config['host'], port=int(config['port']), user=config['username'], password=config['password'], database=config['dbname'])
 
 	def get(self):
 		return self.connect