Skip to content

Instantly share code, notes, and snippets.

@sirvon
Created March 15, 2016 18:30
Show Gist options
  • Select an option

  • Save sirvon/58d8adf0f951dcd236c8 to your computer and use it in GitHub Desktop.

Select an option

Save sirvon/58d8adf0f951dcd236c8 to your computer and use it in GitHub Desktop.

Revisions

  1. sirvon created this gist Mar 15, 2016.
    11 changes: 11 additions & 0 deletions jsonrpoint
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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)