

def add_311_data(output):
    print('adding 311 information')
    data = json.loads(open('data/311.json').read())
    for anc in data:
        output[output[0]]['ancs'][anc[1]]['census']['311_requests'] = {
            'value': int(data[anc]['total']),
        }

dataset/ETHPy150Open codefordc/ancfinder/scripts/update_anc_database.py add_311_data/VarMisuse@40/58 `anc`->`output`