Skip to content

Commit

Permalink
Updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Feb 11, 2024
1 parent 0e608de commit b87cd1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code3/opengeo/geoload.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import ssl
import sys

# https://py4e-data.dr-chuck.net/opengeo?q=Ann+Arbor%2C+MI
serviceurl = 'https://py4e-data.dr-chuck.net/opengeo?'

# Additional detail for urllib
Expand Down Expand Up @@ -69,7 +70,9 @@
nofound = nofound + 1

cur.execute('''INSERT INTO Locations (address, geodata)
VALUES ( ?, ? )''', (memoryview(address.encode()), memoryview(data.encode()) ) )
VALUES ( ?, ? )''',
(memoryview(address.encode()), memoryview(data.encode()) ) )

conn.commit()

if count % 10 == 0 :
Expand Down

0 comments on commit b87cd1c

Please sign in to comment.