Exemplo n.º 1
0
def org_epa_echo_section(entity_id, name, cycle, external_ids, totals):
    section = {
        'name': 'EPA Violations',
        'template': 'org_epa_echo.html',
    }
    
    section['epa_echo'] = api.org.epa_echo(entity_id, cycle)

    section['epa_found_things'] = totals['epa_actions_count']
    section['epa_links'] = external_sites.get_epa_links(name, cycle)
    
    return section
Exemplo n.º 2
0
 def build_section_data(self):
     self.epa_found_things = self.entity.metadata['entity_info']['totals']['epa_actions_count']
     self.epa_links = external_sites.get_epa_links(self.entity.standardized_name, self.entity.cycle)
Exemplo n.º 3
0
 def build_section_data(self):
     self.epa_found_things = self.entity.metadata['entity_info']['totals'][
         'epa_actions_count']
     self.epa_links = external_sites.get_epa_links(
         self.entity.standardized_name, self.entity.cycle)