[Mode]替换run.py中的Tab

This commit is contained in:
vn.py 2018-02-09 17:12:03 +08:00
parent fb6834aaff
commit 684cfb7e47

View File

@ -383,7 +383,6 @@ class Tick(Resource):
#----------------------------------------------------------------------
def post(self):
"""订阅"""
print 'posting to tick'
args = self.parser.parse_args()
token = args['token']
if token != TOKEN:
@ -627,7 +626,7 @@ def handleEvent(event):
if not isinstance(eventData, dict):
eventData = eventData.__dict__
if( eventType == 'eTick.' ):
if eventType == 'eTick.':
del eventData['datetime']
socketio.emit(eventType, eventData)