Created
March 15, 2016 18:30
-
-
Save sirvon/58d8adf0f951dcd236c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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