(a) The judge of any superior court of competent jurisdiction within this state may order the euthanasia of a dog if the court finds, after notice and opportunity for hearing as provided by Code section 8-170 that the dog has seriously injured a human or presents a danger to humans not suitable for control under this article and: (1) The owner or custodian of the dog has been convicted of a violation of any state criminal law and the crime was related to such dog; or (2) Any local government authority has filed with the court a civil action requesting the euthanasia of the dog. (b) A dog that is found, after notice and opportunity for hearing as provided by Code section 8-170 to have caused a serious injury to a human on more than one occasion shall be euthanized; provided, however, that no injury occurring before the effective date of the ordinance from which this article derives shall count for purposes of this subsection.