A state senator has been picked as the new mayor of Charlotte, N.C., to replace Patrick Cannon, who resigned from the post last month in a public-corruption scandal, the Associated Press reports.

The Charlotte City Council on Monday selected Dan Clodfelter, a business lawyer and Democrat who was on the council before being elected to the General Assembly in 1998. Council members had been deadlocked for more than a week on who should fill the position. Clodfelter will finish the two-year term that Cannon, also a Democrat, began in December. Cannon resigned less than two weeks ago after being arrested on federal corruption charges.

Federal prosecutors say that in exchange for city contracts, Cannon took more than $48,000 from FBI agents posing as businessmen, AP reports.

Read more at the Associated Press.