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