|
@@ -251,7 +251,7 @@ def _get_newest_agent_number(saas_id):
|
|
|
agent = Agent.query.filter(Agent.saas_id == saas_id).order_by(Agent.agent_num.desc()).first()
|
|
|
agentNum = START_AGENT_NUM
|
|
|
if agent and agent.agent_num:
|
|
|
- agentNum = str(int(agentNum) + 1)
|
|
|
+ agentNum = str(int(agent.agent_num) + 1)
|
|
|
return agentNum
|
|
|
|
|
|
|