def annotate_locations(data): locations = sql.get_locations() """ Temp solution """ locations[6019.0] = 12 locations[6020.0] = 13 for dobj in data: dobj.Standort = locations[dobj.Standort] return data
def annotate_locations(data): locations = sql.get_locations() for dobj in data: dobj.Standort = locations[dobj.Standort] return data