Guest User

Untitled

a guest
Dec 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. const obj = {x: '2', y: '1'}
  2. const thing = {...obj, x: '1'}
  3. // thing = {x: '1', y: 1}
  4.  
  5. regions = []
  6. for doc in locations_addresses['documents']:
  7. regions.append(
  8. {
  9. ...doc, # this will not work
  10. 'lat': '1234',
  11. 'lng': '1234',
  12.  
  13. }
  14. )
  15. return json.dumps({'regions': regions, 'offices': []})
Add Comment
Please, Sign In to add comment