Any penalty assessed and recovered in an action brought under this chapter shall be paid to the city or county bringing the action.