def getFlowNum(self): while True: num=Basic.getFlowNum() info=Basic.queryOneSellFlowNum(num) if info==[]: return num