Skip to content

Commit 9a74fe3

Browse files
authored
Merge pull request #401 from zhupr/online_fix
Fix online mode bugs
2 parents 50be7a9 + e15ea06 commit 9a74fe3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

qlib/data/data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,8 @@ def __init__(self):
10161016
self.logger = get_module_logger(self.__class__.__name__)
10171017
if isinstance(Cal, ClientCalendarProvider):
10181018
Cal.set_conn(self.client)
1019-
Inst.set_conn(self.client)
1019+
if isinstance(Inst, ClientInstrumentProvider):
1020+
Inst.set_conn(self.client)
10201021
if hasattr(DatasetD, "provider"):
10211022
DatasetD.provider.set_conn(self.client)
10221023
else:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"scipy>=1.0.0",
3636
"requests>=2.18.0",
3737
"sacred>=0.7.4",
38-
"python-socketio==3.1.2",
38+
"python-socketio",
3939
"redis>=3.0.1",
4040
"python-redis-lock>=3.3.1",
4141
"schedule>=0.6.0",

0 commit comments

Comments
 (0)