[Mod] change init function of RqDataClient

This commit is contained in:
vn.py 2019-06-05 19:24:44 +08:00
parent be315e4bc1
commit b0edd7fe88

View File

@ -36,11 +36,15 @@ class RqdataClient:
self.inited = False self.inited = False
self.symbols = set() self.symbols = set()
def init(self): def init(self, username="", password=""):
"""""" """"""
if self.inited: if self.inited:
return True return True
if username and password:
self.username = username
self.password = password
if not self.username or not self.password: if not self.username or not self.password:
return False return False