The end of the military offensive comes just over one week before Iraqis go to the polls to vote on the country 's new constitution .