This commit is contained in:
2
Rss.py
2
Rss.py
@ -53,7 +53,7 @@ class RssDB():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def connect(self):
|
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):
|
def fetchData(self, type, is_success):
|
||||||
db = self.connect()
|
db = self.connect()
|
||||||
|
Reference in New Issue
Block a user