Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions appengine/flexible/datastore/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


app = Flask(__name__)

ds = datastore.Client()

def is_ipv6(addr):
"""Checks if a given address is an IPv6 address."""
Expand All @@ -35,8 +35,6 @@ def is_ipv6(addr):
# [START example]
@app.route('/')
def index():
ds = datastore.Client()

user_ip = request.remote_addr

# Keep only the first two octets of the IP address.
Expand Down