Skip to content

Commit c8dc330

Browse files
committed
fix half renamed variable
1 parent 8006ef7 commit c8dc330

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/osm2pgsql-replication

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def compute_database_date(conn, prefix):
6161
return None
6262

6363
LOG.debug("Using way id %d for timestamp lookup", osmid)
64-
# Get the node from the API to find the timestamp when it was created.
64+
# Get the way from the API to find the timestamp when it was created.
6565
url = 'https://www.openstreetmap.org/api/0.6/way/{}/1'.format(osmid)
6666
headers = {"User-Agent" : "osm2pgsql-update",
6767
"Accept" : "application/json"}
@@ -70,7 +70,7 @@ def compute_database_date(conn, prefix):
7070

7171
if not data.get('elements') or not 'timestamp' in data['elements'][0]:
7272
LOG.fatal("The way data downloaded from the API does not contain valid data.\n"
73-
"URL used: %s", node_url)
73+
"URL used: %s", url)
7474
return None
7575

7676
date = data['elements'][0]['timestamp']

0 commit comments

Comments
 (0)