[Mod] change init function of RqDataClient
This commit is contained in:
parent
be315e4bc1
commit
b0edd7fe88
@ -36,11 +36,15 @@ class RqdataClient:
|
||||
self.inited = False
|
||||
self.symbols = set()
|
||||
|
||||
def init(self):
|
||||
def init(self, username="", password=""):
|
||||
""""""
|
||||
if self.inited:
|
||||
return True
|
||||
|
||||
if username and password:
|
||||
self.username = username
|
||||
self.password = password
|
||||
|
||||
if not self.username or not self.password:
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user