"the city came out and what they fixed wasn't up to code."

I'd go to the local housing authorities and tell them your issues. They can advise you as to where to go from there.

http://portal.hud.gov/hudportal/HUD?...ing/hawebsites