def pushPosition(position): o = { 'available': True, 'position': position, 'createtime': util.getYMDHMS() } position_flow = util.getProperty('position_flow') if position_flow is None: util.setProperty('position_flow', [o]) else: position_flow.append(o) util.removeProperty('position_flow') util.setProperty('position_flow', position_flow)
def removeTreses(): util.removeProperty('tmp_treses')