diff --git a/Rss.py b/Rss.py index 576505e..51c96e6 100644 --- a/Rss.py +++ b/Rss.py @@ -53,7 +53,7 @@ class RssDB(): pass def connect(self): - return pymysql.connect(host=os.getenv('db_host'), user=os.getenv('db_user'), passwd=os.getenv('db_passwd'), port=os.getenv('db_port'), db=os.getenv('db_db')) + return pymysql.connect(host=os.getenv('db_host'), user=os.getenv('db_user'), passwd=os.getenv('db_passwd'), port=int(os.getenv('db_port')), db=os.getenv('db_db')) def fetchData(self, type, is_success): db = self.connect()