Skip to content

Instantly share code, notes, and snippets.

@sirvon
Created March 15, 2016 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirvon/58d8adf0f951dcd236c8 to your computer and use it in GitHub Desktop.
Save sirvon/58d8adf0f951dcd236c8 to your computer and use it in GitHub Desktop.
try:
r.table('marketplaces').insert(
r.http('https://raw.githubusercontent.com/sirvon/fourthScreen/master/marketplaces_only_RETHINKDB.json', result_format='json').merge(lambda marketplace:
{"location": r.point(
marketplace["location"][0],
marketplace["location"][1])
}
)
).run(conn)
except Exception as e:
pprint(e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment