[Mode]替换run.py中的Tab
This commit is contained in:
parent
fb6834aaff
commit
684cfb7e47
@ -383,7 +383,6 @@ class Tick(Resource):
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def post(self):
|
def post(self):
|
||||||
"""订阅"""
|
"""订阅"""
|
||||||
print 'posting to tick'
|
|
||||||
args = self.parser.parse_args()
|
args = self.parser.parse_args()
|
||||||
token = args['token']
|
token = args['token']
|
||||||
if token != TOKEN:
|
if token != TOKEN:
|
||||||
@ -625,9 +624,9 @@ def handleEvent(event):
|
|||||||
eventData = event.dict_['data']
|
eventData = event.dict_['data']
|
||||||
|
|
||||||
if not isinstance(eventData, dict):
|
if not isinstance(eventData, dict):
|
||||||
eventData = eventData.__dict__
|
eventData = eventData.__dict__
|
||||||
|
|
||||||
if( eventType == 'eTick.' ):
|
if eventType == 'eTick.':
|
||||||
del eventData['datetime']
|
del eventData['datetime']
|
||||||
|
|
||||||
socketio.emit(eventType, eventData)
|
socketio.emit(eventType, eventData)
|
||||||
|
Loading…
Reference in New Issue
Block a user