The owner or keeper of any female dog in season shall keep such an animal confined, for twenty-four hour days; during the time she is in season in such a manner that she does not attract other dogs to her.