Police shut down a cannabis farm in Blackpool town centre only to find it was back in production in the same house nine months later, a court heard.