Example #1
0
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)
Example #2
0
def removeTreses():
    util.removeProperty('tmp_treses')