Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if "sede_legale" in item:
- item['status'] = 'ok'
- else:
- item['status'] = 'persona fisica'
- if "sedi_operative" in item:
- if type(item['sedi_operative']) == list:
- sedi_splitted = []
- for sede in item['sedi_operative']:
- splitted_address = splitto_indirizzi(sede)
- sedi_splitted.append(splitted_address)
- item['sedi_operative'] = sedi_splitted
- else:
- splitted_address = splitto_indirizzi(
- item['sedi_operative'])
- item['sedi_operative'] = splitted_address
- collection.update({'n': value}, {
- '$set': item}, True)
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement