Last active
March 7, 2016 19:48
-
-
Save timwis/8e0088f113fd3f43ff9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
valid_depts = [] | |
with open(DEPT_FILE_PATH, 'rb') as file: | |
depts = list(load(file)) | |
for dept in depts: | |
if isinstance(dept, dict): | |
for key, matches in dept.iteritems(): # only one of these | |
valid_depts = valid_depts + [{match: key} for match in matches] | |
else: | |
valid_depts.append({dept: dept}) | |
print valid_depts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Art Museum | |
- Atwater Kent Museum | |
- Auditing: | |
- Auditing (City Controller) | |
- Aviation | |
- Board of Ethics | |
- Board of Revision of Taxes | |
- City Commissioners | |
- City Council | |
- City Planning Commission:: | |
- City Planning | |
- City Planning Comm | |
- City Representative: | |
- City Rep/Commerce | |
- City Treasurer | |
- Civil Service Commission | |
- Commerce | |
- Commerce - Convention Center Subsidy | |
- Commerce - Economic Stimulus | |
- District Attorney | |
- Finance | |
- Finance - Community College Subsidy | |
- Finance - Employee Benefits: | |
- Finance - Emp. Benefits | |
- Finance - Hero Scholarship Awards | |
- Finance - Indemnities: | |
- Finance - Indemnities (1) | |
- Finance - Provision for Other Grants: | |
- Finance - Prov. For Other Grants | |
- Finance - Refunds | |
- Finance - School District Contribution | |
- Finance - Witness Fees | |
- Fire | |
- First Judicial District | |
- Fleet Management: | |
- Mdo - Office of Fleet Mgmt. | |
- Free Library | |
- Historical Commission | |
- Human Relations Commission | |
- Human Services | |
- L&I - Board of Building Standards: | |
- L&I - Board of Building Standards | |
- L&I - Board of L&I Review: | |
- L&I - Board of L&I Review | |
- L&I - Zoning Board of Adjustment: | |
- L&I - Zoning Board of Adjustments | |
- Labor Relations | |
- Law | |
- Licenses and Inspections: | |
- Licenses & Inspection | |
- Licenses & Inspections | |
- Managing Director's Office: | |
- Managing Director | |
- Mayor's Office | |
- Mayor's Office - Scholarships | |
- Mayor's Office of Community Services (now CEO): | |
- M.O.C.S. | |
- Mayor's Office of Transportation & Utilities | |
- Mural Arts Program | |
- Office of Arts and Culture: | |
- Office of Arts & Culture & the Creative Economy | |
- Office of Behavioral Health and Intellectual disAbilities: | |
- Office of Behavioral Health and Intellectual disAbility | |
- Office of Bh/Mr Services | |
- Office of Housing and Community Development: | |
- Office of Housing: | |
- Ohcd | |
- Office of Human Resources | |
- Office of Innovation and Technology: | |
- Oit | |
- Office of Property Assessment | |
- Office of Supportive Housing: | |
- O.S.H. | |
- Office of Sustainability: | |
- Off of Sustainability | |
- Office of the Inspector General | |
- Parks and Recreation: | |
- Parks & Recreation | |
- Police | |
- Prisons | |
- Procurement | |
- Public Health: | |
- Health | |
- Public Property | |
- Public Property - SEPTA Subsidy | |
- Records | |
- Register of Wills | |
- Revenue | |
- Sheriff | |
- Sinking Fund Commission (Debt Service): | |
- Sinking Fund | |
- Sinking Fund Comm | |
- Streets | |
- Water | |
- Youth Commission |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment