def service_alerts(self): return get_dom_from_xml(self.feed)
def __init__(self, id): self.conn = create_engine(MYSQL_CONNECTION_STRING).connect() self.feed = self.conn.execute('select * from mta_feed where id = {id}'.format(id=id)).fetchall() self.dom = get_dom_from_xml(self.feed[0][2])